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

Issue 1411653004: Remove last usage functions from HostContentSettingsMap

Created:
5 years, 1 month ago by raymes
Modified:
4 years, 6 months ago
Reviewers:
Bernhard Bauer, Finnur
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, johnme+watch_chromium.org, kcarattini+watch_chromium.org, lshang, markusheintz_, mcasas+watch_chromium.org, mlamouri+watch-notifications_chromium.org, mlamouri+watch-permissions_chromium.org, mlamouri+watch-geolocation_chromium.org, msramek+watch_chromium.org, mvanouwerkerk+watch_chromium.org, Peter Beverloo, posciak+watch_chromium.org, raymes+watch_chromium.org, James Hawkins
Base URL:
https://chromium.googlesource.com/chromium/src.git@simplify-host-content-settings
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove last usage functions from HostContentSettingsMap These functions are: 1) Unused and have been for over 1 year. There is no concerete plan to use them. 2) Aren't 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 functionality should even be in HostContentSettingsMap. -There is special casing in SetContentSetting for each permission which shouldn't be there. I considered refactoring this code to support the scoping cleanup work, but since it is not used this could just be wasted time. I would rather remove it and when someone needs it they can add it back. BUG=551747

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -369 lines) Patch
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 chunk +0 lines, -40 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/media_stream_devices_controller.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.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 chunk +1 line, -1 line 0 comments Download
M chrome/browser/permissions/permission_manager.cc View 1 chunk +1 line, -4 lines 2 comments Download
M chrome/browser/push_messaging/push_messaging_permission_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/storage/durable_storage_permission_context.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 chunk +0 lines, -36 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 2 chunks +0 lines, -68 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (9 generated)
raymes
5 years, 1 month ago (2015-11-09 05:41:46 UTC) #4
Michael van Ouwerkerk
On 2015/11/09 05:41:46, raymes wrote: The CL description does not seem correct: the last usage ...
5 years, 1 month ago (2015-11-09 10:32:50 UTC) #5
msramek
On 2015/11/09 10:32:50, Michael van Ouwerkerk wrote: > On 2015/11/09 05:41:46, raymes wrote: > > ...
5 years, 1 month ago (2015-11-09 10:57:55 UTC) #6
mlamouri (slow - plz ping)
https://codereview.chromium.org/1411653004/diff/1/chrome/browser/permissions/permission_manager.cc File chrome/browser/permissions/permission_manager.cc (right): https://codereview.chromium.org/1411653004/diff/1/chrome/browser/permissions/permission_manager.cc#newcode342 chrome/browser/permissions/permission_manager.cc:342: // TODO(tsergeant): Use this for measuring permission usage stats. ...
5 years, 1 month ago (2015-11-09 20:33:13 UTC) #8
Bernhard Bauer
On 2015/11/09 10:57:55, msramek wrote: > On 2015/11/09 10:32:50, Michael van Ouwerkerk wrote: > > ...
5 years, 1 month ago (2015-11-09 20:37:14 UTC) #10
msramek
On 2015/11/09 20:37:14, Bernhard Bauer wrote: > On 2015/11/09 10:57:55, msramek wrote: > > On ...
5 years, 1 month ago (2015-11-09 20:42:28 UTC) #11
Bernhard Bauer
(Oops, let's make that Chromium jhawkins)
5 years, 1 month ago (2015-11-09 20:49:47 UTC) #13
raymes
Thanks all! If this is really going to be used soon then of course I'm ...
5 years, 1 month ago (2015-11-09 23:07:58 UTC) #14
James Hawkins
On 2015/11/09 23:07:58, raymes wrote: > Thanks all! If this is really going to be ...
5 years, 1 month ago (2015-11-09 23:09:25 UTC) #15
Bernhard Bauer
lgtm
5 years, 1 month ago (2015-11-09 23:22:03 UTC) #17
Bernhard Bauer
not lgtm for now (sorry, i misclicked)
5 years, 1 month ago (2015-11-09 23:22:27 UTC) #18
Bernhard Bauer
What I meant to say was: 😃 Moving James to CC, +Finnur tbuckley@ just told ...
5 years, 1 month ago (2015-11-09 23:24:07 UTC) #19
raymes
On 2015/11/09 23:24:07, Bernhard Bauer wrote: > What I meant to say was: 😃 > ...
5 years, 1 month ago (2015-11-10 03:43:37 UTC) #20
tbuckley
The mocks show how this data is intended to be used: https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Inner%20Pages/03-Settings/preview/cards#%2FPREVIEW-Privacy_Security.png%3Fz=half
5 years, 1 month ago (2015-11-10 05:46:37 UTC) #21
Finnur
Yes, the mocks for the MD-settings initiative include showing the usage data for the permissions ...
5 years, 1 month ago (2015-11-10 12:17:54 UTC) #22
raymes
To loop back on this: it's now been 1.5 years that the code has been ...
4 years, 6 months ago (2016-06-06 04:50:57 UTC) #25
Bernhard Bauer
4 years, 6 months ago (2016-06-06 08:14:29 UTC) #26
OK, if there are no plans right now to show last usage in content settings UI,
LGTM.

Powered by Google App Engine
This is Rietveld 408576698