DescriptionRemove CONTENT_SETTINGS_NUM_TYPES (part 2)
To make it possible to make ContentSettingsTypes no longer an enum we need
to remove the occurrences of iterations over it. This CL removes occurences
from chrome/browser/ui/content_settings and does some cleanup. Rather than
switching on ContentSettingsType, we instead create a list of content settings
types that have bubbles and iterate over that.
The list of nib paths in content_setting_bubble_cocoa.mm has been updated to
include CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC/CAMERA to match the list of
bubble types.
location_bar_view.cc has been changed not to iterate over entire enum anymore
because it only needed to iterate over the list of types that have bubbles.
BUG=526932
Committed: https://crrev.com/3432a1f970e76002552e599cd1148774a3310393
Cr-Commit-Position: refs/heads/master@{#347888}
Patch Set 1 #
Total comments: 12
Patch Set 2 : #
Total comments: 1
Patch Set 3 : #
Total comments: 6
Patch Set 4 : #
Messages
Total messages: 31 (12 generated)
|