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

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)

Created:
3 years, 10 months ago by Timothy Loh
Modified:
3 years, 10 months ago
CC:
chromium-reviews, msramek+watch_chromium.org, chfremer+watch_chromium.org, nasko+codewatch_chromium.org, markusheintz_, awdf+watch_chromium.org, mlamouri+watch-geolocation_chromium.org, lcwu+watch_chromium.org, jam, raymes+watch_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, einbinder+watch-test-runner_chromium.org, android-webview-reviews_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, Michael van Ouwerkerk, mlamouri+watch-permissions_chromium.org, alokp+watch_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove last usage functions from HostContentSettingsMap and clean up prefs The last usage functions are: 1) Unused and have been for over 2.5 years. There is no concrete plan to use them. 2) Not implemented in a very clean way, e.g.: - There are 5 functions in HostContentSettingsMap for this functionality making the interface more complex. It's unclear whether this should even be in HostContentSettingsMap. - There is special casing in SetContentSettingCustomScope for some permissions which shouldn't be there. This patch a rebase of raymes@'s patch crrev.com/1411653004 with RegisterPermissionUsage and prefs logic also removed, and code to clean up the existing saved prefs added. BUG=691893 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation TBR=torne, sergeyu, alokp, nasko, timvolodine Review-Url: https://codereview.chromium.org/2697473002 Cr-Commit-Position: refs/heads/master@{#451693} Committed: https://chromium.googlesource.com/chromium/src/+/625ec633bc9592783a2ac98c55e5253189221eed

Patch Set 1 #

Patch Set 2 : remove logic in prefs + clean up saved prefs #

Patch Set 3 : adjust a comment #

Total comments: 8

Patch Set 4 : rebase address comments #

Total comments: 4

Patch Set 5 : fix up unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -612 lines) Patch
M android_webview/browser/aw_permission_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M android_webview/browser/aw_permission_manager.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 4 chunks +63 lines, -37 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 chunk +0 lines, -137 lines 0 comments Download
M chrome/browser/media/webrtc/media_stream_devices_controller.cc View 1 2 3 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/notifications/notification_interactive_uitest.cc View 1 chunk +0 lines, -34 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/browser/permissions/permission_context_base.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/permissions/permission_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 2 3 1 chunk +0 lines, -15 lines 0 comments Download
M chromecast/browser/cast_permission_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chromecast/browser/cast_permission_manager.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref.cc View 1 4 chunks +0 lines, -63 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref_provider.h View 1 3 chunks +0 lines, -19 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref_provider.cc View 1 2 3 5 chunks +29 lines, -23 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 3 chunks +0 lines, -40 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 3 chunks +0 lines, -69 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 2 chunks +1 line, -16 lines 0 comments Download
M content/public/browser/permission_manager.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_permission_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_permission_manager.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M content/shell/browser/shell_permission_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/shell/browser/shell_permission_manager.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M content/test/mock_permission_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M device/geolocation/geolocation_service_context.h View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M device/geolocation/geolocation_service_context.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M device/geolocation/geolocation_service_impl.h View 2 chunks +1 line, -6 lines 0 comments Download
M device/geolocation/geolocation_service_impl.cc View 2 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
Timothy Loh
This is a rebase of https://codereview.chromium.org/1411653004 with the RegisterPermissionUsage function also removed as I understand ...
3 years, 10 months ago (2017-02-13 04:33:11 UTC) #3
Timothy Loh
On 2017/02/13 04:33:11, Timothy Loh wrote: > This is a rebase of https://codereview.chromium.org/1411653004 with the ...
3 years, 10 months ago (2017-02-13 08:40:36 UTC) #4
Bernhard Bauer
This CL looks good so far, but I agree that it would be nice to ...
3 years, 10 months ago (2017-02-13 13:19:58 UTC) #5
Timothy Loh
In the latest patch set, I removed the logic for setting the last usage prefs ...
3 years, 10 months ago (2017-02-14 04:23:16 UTC) #8
Bernhard Bauer
lgtm https://codereview.chromium.org/2697473002/diff/40001/components/content_settings/core/browser/content_settings_pref_provider.cc File components/content_settings/core/browser/content_settings_pref_provider.cc (right): https://codereview.chromium.org/2697473002/diff/40001/components/content_settings/core/browser/content_settings_pref_provider.cc#newcode251 components/content_settings/core/browser/content_settings_pref_provider.cc:251: for (auto key : values_to_clean) { Use the ...
3 years, 10 months ago (2017-02-14 13:38:27 UTC) #9
Peter Beverloo
notifications and //content/shell drive-by lgtm Thanks for the clean up!
3 years, 10 months ago (2017-02-14 13:50:20 UTC) #11
raymes
Thank you so much for this! lg besides a couple of minor comments. https://codereview.chromium.org/2697473002/diff/40001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File ...
3 years, 10 months ago (2017-02-16 11:01:38 UTC) #12
Timothy Loh
https://codereview.chromium.org/2697473002/diff/40001/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/2697473002/diff/40001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode184 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:184: "profile.content_settings.exceptions.geolocation"; On 2017/02/16 11:01:38, raymes wrote: > nit: You ...
3 years, 10 months ago (2017-02-17 06:54:42 UTC) #13
raymes
lgtm https://codereview.chromium.org/2697473002/diff/60001/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/2697473002/diff/60001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode225 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:225: provider.ShutdownOnUIThread(); nit: should we avoid calling this until ...
3 years, 10 months ago (2017-02-19 23:57:54 UTC) #14
Timothy Loh
https://codereview.chromium.org/2697473002/diff/60001/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/2697473002/diff/60001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode225 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:225: provider.ShutdownOnUIThread(); On 2017/02/19 23:57:54, raymes wrote: > nit: should ...
3 years, 10 months ago (2017-02-21 00:14:09 UTC) #15
Timothy Loh
TBRing a few people: torne: android_webview sergeyu: chrome/browser/media/webrtc alokp: chromecast/browser nasko: content timvolodine: device/geolocation
3 years, 10 months ago (2017-02-21 00:16:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697473002/80001
3 years, 10 months ago (2017-02-21 00:17:10 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/369992)
3 years, 10 months ago (2017-02-21 01:27:08 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697473002/80001
3 years, 10 months ago (2017-02-21 02:35:07 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/625ec633bc9592783a2ac98c55e5253189221eed
3 years, 10 months ago (2017-02-21 03:34:20 UTC) #28
Torne
android_webview lgtm
3 years, 10 months ago (2017-02-21 11:59:41 UTC) #29
Torne
3 years, 10 months ago (2017-02-21 11:59:41 UTC) #30
Message was sent while issue was closed.
android_webview lgtm

Powered by Google App Engine
This is Rietveld 408576698