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

Issue 1991623005: Only Register() platform specific content settings types on different platforms (Closed)

Created:
4 years, 7 months ago by lshang
Modified:
4 years, 6 months ago
Reviewers:
msramek, raymes
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only Register() platform specific content settings types on different platforms Content settings are not used on all platforms. Some content settings are only used on desktop platforms, or desktop and android. We shouldn't register these types on other platforms that aren't using them, so that we don't create unused prefs for them and more importantly so that we don't sync settings to these platforms which would go unused but be a potential privacy concern. In this CL, an enum WebsiteSettingsInfo::Platform is added and used when registering content settings to indicate which platform set it is applied to. BUG=604632 Committed: https://crrev.com/afd97ff8f20acb90a6b495776e385411371651f0 Cr-Commit-Position: refs/heads/master@{#398174}

Patch Set 1 : #

Patch Set 2 : fix test failure in ios trying to find plugins #

Patch Set 3 : format #

Total comments: 10

Patch Set 4 : test #

Total comments: 13

Patch Set 5 : unsyncable on ios #

Patch Set 6 : #

Total comments: 25

Patch Set 7 : address review comments and add tests #

Total comments: 2

Patch Set 8 : fix unit tests #

Patch Set 9 : remove debugging logs #

Patch Set 10 : reset to approval state #

Patch Set 11 : split the changes and register images, plugins, mouselock in this CL #

Messages

Total messages: 77 (58 generated)
lshang
raymes@ msramek@, this is a follow up CL of https://codereview.chromium.org/1902703002/. I changed the implementation according ...
4 years, 7 months ago (2016-05-20 06:23:52 UTC) #14
raymes
Thanks Liu! https://codereview.chromium.org/1991623005/diff/260001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/260001/components/content_settings/core/browser/content_settings_registry.cc#newcode333 components/content_settings/core/browser/content_settings_registry.cc:333: WebsiteSettingsInfo::AppliedPlatform applied_platform, nit: perhaps just name this ...
4 years, 7 months ago (2016-05-20 19:10:16 UTC) #15
msramek
Thanks Liu, this is pretty much how I envisioned it (even if Raymes doesn't like ...
4 years, 7 months ago (2016-05-23 14:49:49 UTC) #20
lshang
msramek@ raymes@, can you take a look again? Thanks! https://codereview.chromium.org/1991623005/diff/260001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/260001/components/content_settings/core/browser/content_settings_registry.cc#newcode333 components/content_settings/core/browser/content_settings_registry.cc:333: ...
4 years, 7 months ago (2016-05-24 11:55:46 UTC) #43
msramek
LG, but please improve the tests. https://codereview.chromium.org/1991623005/diff/480001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/480001/components/content_settings/core/browser/content_settings_registry.cc#newcode351 components/content_settings/core/browser/content_settings_registry.cc:351: std::cout << "-------" ...
4 years, 7 months ago (2016-05-24 14:29:24 UTC) #45
raymes
Thanks! https://codereview.chromium.org/1991623005/diff/830001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/830001/components/content_settings/core/browser/content_settings_registry.cc#newcode334 components/content_settings/core/browser/content_settings_registry.cc:334: uint32_t platform, nit: platforms https://codereview.chromium.org/1991623005/diff/830001/components/content_settings/core/browser/content_settings_registry.cc#newcode351 components/content_settings/core/browser/content_settings_registry.cc:351: if (website_settings_info ...
4 years, 7 months ago (2016-05-25 03:36:07 UTC) #46
lshang
https://codereview.chromium.org/1991623005/diff/830001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/830001/components/content_settings/core/browser/content_settings_registry.cc#newcode334 components/content_settings/core/browser/content_settings_registry.cc:334: uint32_t platform, On 2016/05/25 03:36:07, raymes wrote: > nit: ...
4 years, 7 months ago (2016-05-25 10:38:17 UTC) #48
lshang
msramek@ raymes@, PTALA thanks!:-)
4 years, 7 months ago (2016-05-26 07:00:42 UTC) #49
msramek
LGTM. Thanks a lot for taking care of this!
4 years, 6 months ago (2016-05-27 11:12:56 UTC) #50
raymes
lgtm https://codereview.chromium.org/1991623005/diff/870001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/870001/components/content_settings/core/browser/content_settings_registry.cc#newcode366 components/content_settings/core/browser/content_settings_registry.cc:366: // is not used on current platform and ...
4 years, 6 months ago (2016-05-30 00:35:58 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991623005/910001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1991623005/910001
4 years, 6 months ago (2016-05-30 03:21:03 UTC) #54
lshang
Thanks for correcting my grammar!:-)@raymes https://codereview.chromium.org/1991623005/diff/870001/components/content_settings/core/browser/content_settings_registry.cc File components/content_settings/core/browser/content_settings_registry.cc (right): https://codereview.chromium.org/1991623005/diff/870001/components/content_settings/core/browser/content_settings_registry.cc#newcode366 components/content_settings/core/browser/content_settings_registry.cc:366: // is not used ...
4 years, 6 months ago (2016-05-30 03:22:11 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/78468)
4 years, 6 months ago (2016-05-30 05:27:22 UTC) #57
lshang
Hi Martin, Raymes, unregistering images and plugins caused a lot of crashes on Android. Some ...
4 years, 6 months ago (2016-06-02 12:21:15 UTC) #67
raymes
Hey Liu - perhaps we could break this off into a separate CL since the ...
4 years, 6 months ago (2016-06-06 04:56:48 UTC) #68
lshang
On 2016/06/06 04:56:48, raymes wrote: > Hey Liu - perhaps we could break this off ...
4 years, 6 months ago (2016-06-06 06:44:07 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991623005/1110001
4 years, 6 months ago (2016-06-06 23:47:54 UTC) #73
commit-bot: I haz the power
Committed patchset #11 (id:1110001)
4 years, 6 months ago (2016-06-07 00:28:58 UTC) #75
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 00:30:49 UTC) #77
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/afd97ff8f20acb90a6b495776e385411371651f0
Cr-Commit-Position: refs/heads/master@{#398174}

Powered by Google App Engine
This is Rietveld 408576698