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

Issue 1318083005: Remove HostContentSettingsMap::ContentTypeHasCompoundValue function (Closed)

Created:
5 years, 3 months ago by raymes
Modified:
5 years, 2 months ago
CC:
chromium-reviews, markusheintz_, raymes+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, msramek
Base URL:
https://chromium.googlesource.com/chromium/src.git@remove-num-types-enum-3
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove HostContentSettingsMap::ContentTypeHasCompoundValue function This CL removes HostContentSettingsMap::ContentTypeHasCompoundValue and changes its callers to use ContentSettingsRegistry to check whether the type is a content setting or website setting -- if it's a website setting it implies it has a compound value. One callsite has also been changed to iterate over ContentSettingsRegistry instead of WebsiteSettingsRegistry which removes the need for the check (this required making ContentSettingsRegistry iterable). BUG=526932 Committed: https://crrev.com/98ff54a4b68b4272c0e5cda62cc392c682dff65f Cr-Commit-Position: refs/heads/master@{#351468}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 3

Messages

Total messages: 35 (12 generated)
raymes
5 years, 3 months ago (2015-09-23 04:15:36 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/1318083005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318083005/80001
5 years, 3 months ago (2015-09-23 04:18:25 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/116727)
5 years, 3 months ago (2015-09-23 04:52:27 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc File components/content_settings/core/browser/content_settings_pref.cc (right): https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc#newcode317 components/content_settings/core/browser/content_settings_pref.cc:317: setting = FixObsoleteCookiePromptMode(content_type_, Actually, we can probably get rid ...
5 years, 3 months ago (2015-09-23 11:30:38 UTC) #7
raymes
https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc File components/content_settings/core/browser/content_settings_pref.cc (right): https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc#newcode317 components/content_settings/core/browser/content_settings_pref.cc:317: setting = FixObsoleteCookiePromptMode(content_type_, Let me know if I did ...
5 years, 3 months ago (2015-09-24 03:07:51 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318083005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318083005/140001
5 years, 3 months ago (2015-09-24 03:09:07 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-24 04:53:47 UTC) #12
Bernhard Bauer
https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc File components/content_settings/core/browser/content_settings_pref.cc (right): https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc#newcode317 components/content_settings/core/browser/content_settings_pref.cc:317: setting = FixObsoleteCookiePromptMode(content_type_, On 2015/09/24 03:07:51, raymes wrote: > ...
5 years, 3 months ago (2015-09-24 08:48:26 UTC) #13
raymes
Thanks! https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc File components/content_settings/core/browser/content_settings_pref.cc (right): https://codereview.chromium.org/1318083005/diff/80001/components/content_settings/core/browser/content_settings_pref.cc#newcode317 components/content_settings/core/browser/content_settings_pref.cc:317: setting = FixObsoleteCookiePromptMode(content_type_, Sounds good. I've left the ...
5 years, 2 months ago (2015-09-28 06:45:23 UTC) #14
Bernhard Bauer
LGTM https://codereview.chromium.org/1318083005/diff/160001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/1318083005/diff/160001/components/content_settings/core/browser/host_content_settings_map.cc#newcode459 components/content_settings/core/browser/host_content_settings_map.cc:459: nullptr, content_settings::ValueToContentSetting(value), type); You can reuse |setting| here. ...
5 years, 2 months ago (2015-09-28 18:38:25 UTC) #15
raymes
https://codereview.chromium.org/1318083005/diff/160001/components/content_settings/core/browser/host_content_settings_map.cc File components/content_settings/core/browser/host_content_settings_map.cc (right): https://codereview.chromium.org/1318083005/diff/160001/components/content_settings/core/browser/host_content_settings_map.cc#newcode459 components/content_settings/core/browser/host_content_settings_map.cc:459: nullptr, content_settings::ValueToContentSetting(value), type); On 2015/09/28 18:38:24, Bernhard Bauer wrote: ...
5 years, 2 months ago (2015-09-29 04:53:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318083005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318083005/180001
5 years, 2 months ago (2015-09-29 04:54:14 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/104568)
5 years, 2 months ago (2015-09-29 05:03:59 UTC) #21
raymes
+engedy for chrome/browser/profile_resetter/profile_resetter_unittest.cc
5 years, 2 months ago (2015-09-29 05:14:57 UTC) #22
raymes
+engedy for chrome/browser/profile_resetter/profile_resetter_unittest.cc
5 years, 2 months ago (2015-09-29 05:15:10 UTC) #24
engedy
c/b/profile_resetter LGTM. The unittest after the change seems to be verifying the same set of ...
5 years, 2 months ago (2015-09-29 12:26:18 UTC) #25
engedy
Actually adding Martin.
5 years, 2 months ago (2015-09-29 12:26:45 UTC) #27
msramek
https://codereview.chromium.org/1318083005/diff/180001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (right): https://codereview.chromium.org/1318083005/diff/180001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#newcode497 chrome/browser/profile_resetter/profile_resetter_unittest.cc:497: for (const content_settings::ContentSettingsInfo* info : *registry) { On 2015/09/29 ...
5 years, 2 months ago (2015-09-29 12:48:53 UTC) #28
engedy
Thank you!
5 years, 2 months ago (2015-09-29 13:05:14 UTC) #29
raymes
https://codereview.chromium.org/1318083005/diff/180001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (right): https://codereview.chromium.org/1318083005/diff/180001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#newcode497 chrome/browser/profile_resetter/profile_resetter_unittest.cc:497: for (const content_settings::ContentSettingsInfo* info : *registry) { I agree ...
5 years, 2 months ago (2015-09-30 00:42:46 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318083005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318083005/180001
5 years, 2 months ago (2015-09-30 00:43:52 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 2 months ago (2015-09-30 01:38:59 UTC) #34
commit-bot: I haz the power
5 years, 2 months ago (2015-09-30 01:39:44 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/98ff54a4b68b4272c0e5cda62cc392c682dff65f
Cr-Commit-Position: refs/heads/master@{#351468}

Powered by Google App Engine
This is Rietveld 408576698