Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Issue 1312053006: Remove CONTENT_SETTINGS_NUM_TYPES (part 2) (Closed)

Created:
5 years, 3 months ago by raymes
Modified:
5 years, 3 months ago
Reviewers:
Bernhard Bauer, tapted, msw
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@website-settings-registry-4
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove 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 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -70 lines) Patch
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 1 2 2 chunks +31 lines, -40 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm View 1 2 1 chunk +5 lines, -22 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 31 (12 generated)
raymes
5 years, 3 months ago (2015-09-03 04:52:27 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312053006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312053006/1
5 years, 3 months ago (2015-09-03 05:40:40 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/108449)
5 years, 3 months ago (2015-09-03 06:21:59 UTC) #6
tapted
https://codereview.chromium.org/1312053006/diff/1/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm File chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm (right): https://codereview.chromium.org/1312053006/diff/1/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm#newcode255 chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm:255: {CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, @"ContentBlockedMedia"}, _MIC and _CAMERA were previously NOTREACHED() - ...
5 years, 3 months ago (2015-09-03 06:36:38 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312053006/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312053006/20001
5 years, 3 months ago (2015-09-07 03:25:53 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-07 04:04:36 UTC) #11
raymes
https://codereview.chromium.org/1312053006/diff/1/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm File chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm (right): https://codereview.chromium.org/1312053006/diff/1/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm#newcode255 chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm:255: {CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC, @"ContentBlockedMedia"}, On 2015/09/03 06:36:38, tapted wrote: > _MIC ...
5 years, 3 months ago (2015-09-07 04:29:28 UTC) #12
tapted
https://codereview.chromium.org/1312053006/diff/20001/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm File chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm (right): https://codereview.chromium.org/1312053006/diff/20001/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm#newcode124 chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm:124: CreateBubbleController(CONTENT_SETTINGS_TYPE_MEDIASTREAM); Should this iterate over _MIC and _CAMERA as ...
5 years, 3 months ago (2015-09-07 05:39:21 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312053006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312053006/40001
5 years, 3 months ago (2015-09-07 05:58:49 UTC) #15
raymes
On 2015/09/07 05:39:21, tapted wrote: > https://codereview.chromium.org/1312053006/diff/20001/chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm > File > chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm > (right): > > ...
5 years, 3 months ago (2015-09-07 06:21:59 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-07 06:28:17 UTC) #18
tapted
lgtm
5 years, 3 months ago (2015-09-07 06:41:53 UTC) #19
raymes
+msw for non-cocoa chrome/browser/ui/* OWNERS Thanks!
5 years, 3 months ago (2015-09-07 06:48:46 UTC) #21
msw
lgtm with nits. https://codereview.chromium.org/1312053006/diff/40001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm (right): https://codereview.chromium.org/1312053006/diff/40001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm#newcode107 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm:107: for (ContentSettingsType type : nit: auto ...
5 years, 3 months ago (2015-09-08 18:40:46 UTC) #22
raymes
+bauerb for the discussion around "auto" below Thanks msw! There is still the question around ...
5 years, 3 months ago (2015-09-09 01:02:09 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1312053006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1312053006/60001
5 years, 3 months ago (2015-09-09 01:03:55 UTC) #28
msw
still lgtm https://codereview.chromium.org/1312053006/diff/40001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm File chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm (right): https://codereview.chromium.org/1312053006/diff/40001/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm#newcode107 chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm:107: for (ContentSettingsType type : On 2015/09/09 01:02:09, ...
5 years, 3 months ago (2015-09-09 01:10:03 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-09 09:18:20 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 09:19:08 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3432a1f970e76002552e599cd1148774a3310393
Cr-Commit-Position: refs/heads/master@{#347888}

Powered by Google App Engine
This is Rietveld 408576698