TabSpecificContentSettings::MicrophoneCameraState should be an enum
commitf1e07b6ff1e2fea8762265da98cff898d56555f1
authorvabr <vabr@chromium.org>
Wed, 26 Nov 2014 18:03:30 +0000 (26 10:03 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Nov 2014 18:04:45 +0000 (26 18:04 +0000)
treeb18a83a4fc14133ba2484d73957de59ec6337b98
parentf714c2a03b058bf83fe6d86816dcdcd0a5b212e0
TabSpecificContentSettings::MicrophoneCameraState should be an enum

Defining the flags through static constants is both unnecessary verbose, and not consistent with the Chromium code.

This CL fixes the situation by defining MicrophoneCameraState as an enum, and explicitly adding a *Mask typedef for holding masks composed of the enum values.

BUG=387075

Review URL: https://codereview.chromium.org/753213002

Cr-Commit-Position: refs/heads/master@{#305831}
chrome/browser/content_settings/tab_specific_content_settings.cc
chrome/browser/content_settings/tab_specific_content_settings.h