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

Issue 1320673013: Remove HostContentSettingsMap::IsSettingAllowedForType (Closed)

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

Description

Remove HostContentSettingsMap::IsSettingAllowedForType This removes HostContentSettingsMap::IsSettingAllowedForType replacing it with a property on ContentSettingsInfo which specifies allowable types. Some of the registration code has been simplified by using overloaded functions. BUG=526932 Committed: https://crrev.com/3028730af43f92a339901d25f96a3b8d35cdf775 Cr-Commit-Position: refs/heads/master@{#353488}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -242 lines) Patch
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -34 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -34 lines 0 comments Download
M chrome/browser/extensions/api/content_settings/content_settings_api.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter.cc View 1 2 3 4 2 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter_unittest.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M components/content_settings/core/browser/content_settings_info.h View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/content_settings_info.cc View 1 2 3 4 5 1 chunk +10 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref.cc View 1 2 3 4 5 4 chunks +21 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M components/content_settings/core/browser/content_settings_registry.cc View 1 2 3 4 5 6 5 chunks +125 lines, -52 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/content_settings/core/browser/content_settings_utils.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 2 3 4 1 chunk +1 line, -8 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +18 lines, -85 lines 0 comments Download

Messages

Total messages: 46 (20 generated)
raymes
5 years, 2 months ago (2015-09-28 07:09:21 UTC) #2
raymes
5 years, 2 months ago (2015-09-28 07:09:24 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/1320673013/diff/80001/components/content_settings/core/browser/content_settings_info.h File components/content_settings/core/browser/content_settings_info.h (right): https://codereview.chromium.org/1320673013/diff/80001/components/content_settings/core/browser/content_settings_info.h#newcode23 components/content_settings/core/browser/content_settings_info.h:23: const std::vector<ContentSetting>& valid_settings); std::set? ContentSetting is an integer enum ...
5 years, 2 months ago (2015-09-28 18:46:09 UTC) #4
raymes
https://codereview.chromium.org/1320673013/diff/80001/components/content_settings/core/browser/content_settings_info.h File components/content_settings/core/browser/content_settings_info.h (right): https://codereview.chromium.org/1320673013/diff/80001/components/content_settings/core/browser/content_settings_info.h#newcode23 components/content_settings/core/browser/content_settings_info.h:23: const std::vector<ContentSetting>& valid_settings); On 2015/09/28 18:46:09, Bernhard Bauer wrote: ...
5 years, 2 months ago (2015-09-29 05:51:26 UTC) #5
raymes
Ping :) On Tue, 29 Sep 2015 at 15:51 <raymes@chromium.org> wrote: > > > https://codereview.chromium.org/1320673013/diff/80001/components/content_settings/core/browser/content_settings_info.h ...
5 years, 2 months ago (2015-09-30 23:48:22 UTC) #6
Bernhard Bauer
LGTM, sorry!
5 years, 2 months ago (2015-10-01 07:55:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673013/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673013/100001
5 years, 2 months ago (2015-10-01 23:49:16 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/118616)
5 years, 2 months ago (2015-10-01 23:54:00 UTC) #11
raymes
+OWNERS benwells for chrome/browser/extensions/api/content_settings/content_settings_api.cc engedy for chrome/browser/profile_resetter/profile_resetter.cc chrome/browser/profile_resetter/profile_resetter_unittest.cc
5 years, 2 months ago (2015-10-06 01:28:58 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/1320673013/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673013/120001
5 years, 2 months ago (2015-10-06 01:32:52 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/122693)
5 years, 2 months ago (2015-10-06 01:58:11 UTC) #17
benwells
lgtm (once tests fixed) Have you considered adding convenience functions for the content_settings::ContentSettingsRegistry::GetInstance()->Get(xxxx)->IsBlah pattern? Something ...
5 years, 2 months ago (2015-10-06 02:28:14 UTC) #18
benwells
lgtm (once tests fixed) Have you considered adding convenience functions for the content_settings::ContentSettingsRegistry::GetInstance()->Get(xxxx)->IsBlah pattern? Something ...
5 years, 2 months ago (2015-10-06 02:28:19 UTC) #19
engedy
chrome/browser/profile_resetter/ LGTM.
5 years, 2 months ago (2015-10-06 08:25:18 UTC) #20
engedy
... % comments. https://codereview.chromium.org/1320673013/diff/120001/chrome/browser/profile_resetter/profile_resetter.cc File chrome/browser/profile_resetter/profile_resetter.cc (left): https://codereview.chromium.org/1320673013/diff/120001/chrome/browser/profile_resetter/profile_resetter.cc#oldcode229 chrome/browser/profile_resetter/profile_resetter.cc:229: if (HostContentSettingsMap::IsSettingAllowedForType( I think something like ...
5 years, 2 months ago (2015-10-06 08:53:26 UTC) #21
raymes
I have thought about it but I don't think it's good to encourage that, instead ...
5 years, 2 months ago (2015-10-11 23:20:34 UTC) #22
raymes
Thanks! https://codereview.chromium.org/1320673013/diff/120001/chrome/browser/profile_resetter/profile_resetter.cc File chrome/browser/profile_resetter/profile_resetter.cc (left): https://codereview.chromium.org/1320673013/diff/120001/chrome/browser/profile_resetter/profile_resetter.cc#oldcode229 chrome/browser/profile_resetter/profile_resetter.cc:229: if (HostContentSettingsMap::IsSettingAllowedForType( This should still work - CONTENT_SETTING_DEFAULT ...
5 years, 2 months ago (2015-10-12 00:03:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673013/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673013/140001
5 years, 2 months ago (2015-10-12 00:04:04 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/114312) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-10-12 00:06:19 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673013/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673013/160001
5 years, 2 months ago (2015-10-12 02:19:18 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/63951)
5 years, 2 months ago (2015-10-12 02:54:03 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673013/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673013/180001
5 years, 2 months ago (2015-10-12 03:29:17 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/80577)
5 years, 2 months ago (2015-10-12 06:13:29 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1320673013/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1320673013/200001
5 years, 2 months ago (2015-10-12 06:42:32 UTC) #44
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 2 months ago (2015-10-12 07:32:58 UTC) #45
commit-bot: I haz the power
5 years, 2 months ago (2015-10-12 07:33:49 UTC) #46
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3028730af43f92a339901d25f96a3b8d35cdf775
Cr-Commit-Position: refs/heads/master@{#353488}

Powered by Google App Engine
This is Rietveld 408576698