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

Issue 2039803002: Unregister Images, Plugins and Mouselock content settings on android (Closed)

Created:
4 years, 6 months ago by lshang
Modified:
4 years, 6 months ago
Reviewers:
Bernhard Bauer, 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@only_register_platform_used_contentsettingtypes
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Unregister Images, Plugins and Mouselock content settings on android Images, plugins and mouselock content settings aren't used on Android, so unregister them in ContentSettingsRegistry and handle places in shared code where get access to these types. Several places in shared code are if-defed out when they try to get access to unregistered types. Some tests are also changed to use COOKIES instead of IMAGES to make the tests more platform generic, if they are not testing images specifically. This is a follow up CL of https://codereview.chromium.org/1991623005/. BUG=604632 TBR= msramek@chromium.org Committed: https://crrev.com/e085f20530d930427a3efff3a2fd9aa2f94d61a9 Cr-Commit-Position: refs/heads/master@{#399634}

Patch Set 1 #

Total comments: 14

Patch Set 2 : address review comments #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : nit change in comments #

Total comments: 1

Patch Set 5 : rebase #

Patch Set 6 : address review comments, minor change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -257 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java View 1 2 3 4 5 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/content_settings/content_settings_default_provider_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 12 chunks +55 lines, -72 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 30 chunks +97 lines, -138 lines 0 comments Download
M chrome/browser/content_settings/mock_settings_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/tab_specific_content_settings_unittest.cc View 5 chunks +18 lines, -8 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_unittest.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_default_provider.cc View 2 chunks +15 lines, -10 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M components/content_settings/core/browser/content_settings_registry_unittest.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/content_settings_utils.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (14 generated)
lshang
PTAL thanks!
4 years, 6 months ago (2016-06-06 23:48:45 UTC) #6
raymes
https://codereview.chromium.org/2039803002/diff/1/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/2039803002/diff/1/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode295 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:295: #if !defined(OS_ANDROID) Should we use #if defined(ENABLE_PLUGINS) instead (and ...
4 years, 6 months ago (2016-06-07 01:40:44 UTC) #7
lshang
Thanks Raymes! I add wildcard ALLOW settings for images in ContentSettingsUtils::GetRendererContentSettingRules(), if it is on ...
4 years, 6 months ago (2016-06-07 06:40:00 UTC) #10
raymes
lgtm https://codereview.chromium.org/2039803002/diff/80001/components/content_settings/core/browser/content_settings_utils.cc File components/content_settings/core/browser/content_settings_utils.cc (right): https://codereview.chromium.org/2039803002/diff/80001/components/content_settings/core/browser/content_settings_utils.cc#newcode143 components/content_settings/core/browser/content_settings_utils.cc:143: // wildcard. nit: is added for wildcard->is added ...
4 years, 6 months ago (2016-06-08 02:55:33 UTC) #11
lshang
Bernhard, could you give OWNER review for: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java chrome/browser/android/preferences/pref_service_bridge.cc chrome/browser/browsing_data/browsing_data_remover_unittest.cc Thanks! https://codereview.chromium.org/2039803002/diff/80001/components/content_settings/core/browser/content_settings_utils.cc File components/content_settings/core/browser/content_settings_utils.cc (right): ...
4 years, 6 months ago (2016-06-09 00:43:20 UTC) #13
Bernhard Bauer
LGTM Out of curiosity: Do we not support mouselock at all on Android? It's very ...
4 years, 6 months ago (2016-06-09 08:55:45 UTC) #14
lshang
On 2016/06/09 08:55:45, Bernhard Bauer wrote: > LGTM > > Out of curiosity: Do we ...
4 years, 6 months ago (2016-06-14 00:55:10 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2039803002/140001
4 years, 6 months ago (2016-06-14 01:20:33 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 6 months ago (2016-06-14 01:25:22 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-14 01:25:33 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 01:27:04 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e085f20530d930427a3efff3a2fd9aa2f94d61a9
Cr-Commit-Position: refs/heads/master@{#399634}

Powered by Google App Engine
This is Rietveld 408576698