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

Issue 459953002: Migrate geolocation permissions to the new common permission class. (Closed)

Created:
6 years, 4 months ago by Miguel Garcia
Modified:
5 years, 8 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, markusheintz_, Michael van Ouwerkerk
Project:
chromium
Visibility:
Public.

Description

Migrate geolocation permissions to the new common permission class. BUG=392145 TBR=benm Committed: https://crrev.com/fa052070ded331c02f881cbc8332090986bc8f53 Cr-Commit-Position: refs/heads/master@{#297180}

Patch Set 1 #

Patch Set 2 : Fix WebView tests #

Patch Set 3 : #

Total comments: 26

Patch Set 4 : #

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Total comments: 3

Patch Set 7 : Plain rebase, comments not addressed #

Patch Set 8 : Address Bernhard comments, fix failing tests #

Patch Set 9 : Fix Android test #

Patch Set 10 : rebase #

Total comments: 11

Patch Set 11 : #

Patch Set 12 : Rebase #

Total comments: 2

Patch Set 13 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+322 lines, -698 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -2 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -18 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/permission_bubble_request_impl.cc View 1 2 3 4 5 6 3 chunks +22 lines, -13 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/content_settings/permission_context_uma_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -32 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.cc View 1 2 3 4 5 6 4 chunks +6 lines, -95 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context.h View 1 chunk +17 lines, -90 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -290 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +21 lines, -13 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.cc View 1 2 3 4 5 6 7 8 3 chunks +46 lines, -32 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_factory.cc View 3 chunks +17 lines, -30 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +12 lines, -52 lines 0 comments Download
M chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +24 lines, -10 lines 0 comments Download
M content/browser/geolocation/geolocation_dispatcher_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/geolocation/geolocation_dispatcher_host.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 5 chunks +16 lines, -0 lines 2 comments Download

Messages

Total messages: 25 (2 generated)
Miguel Garcia
Initial review.
6 years, 4 months ago (2014-08-11 18:30:35 UTC) #1
Michael van Ouwerkerk
https://codereview.chromium.org/459953002/diff/40001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/459953002/diff/40001/android_webview/browser/aw_content_browser_client.cc#newcode152 android_webview/browser/aw_content_browser_client.cc:152: void CancelGeolocationPermissionRequests( Looks like this is dead code now. ...
6 years, 4 months ago (2014-08-13 10:01:11 UTC) #2
Miguel Garcia
Thanks! adding owners for the different sections now benm for webview bauerb for content_settings. jam ...
6 years, 4 months ago (2014-08-13 13:18:13 UTC) #3
Miguel Garcia
Adding Daniel as well since this changes moves the usage auditing to the common permission ...
6 years, 4 months ago (2014-08-13 13:19:29 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/459953002/diff/80001/chrome/browser/content_settings/permission_bubble_request_impl.cc File chrome/browser/content_settings/permission_bubble_request_impl.cc (right): https://codereview.chromium.org/459953002/diff/80001/chrome/browser/content_settings/permission_bubble_request_impl.cc#newcode68 chrome/browser/content_settings/permission_bubble_request_impl.cc:68: case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: Nit: these case statements aren't correctly aligned. ...
6 years, 4 months ago (2014-08-13 13:34:32 UTC) #5
Miguel Garcia
https://chromiumcodereview.appspot.com/459953002/diff/80001/chrome/browser/content_settings/permission_bubble_request_impl.cc File chrome/browser/content_settings/permission_bubble_request_impl.cc (right): https://chromiumcodereview.appspot.com/459953002/diff/80001/chrome/browser/content_settings/permission_bubble_request_impl.cc#newcode68 chrome/browser/content_settings/permission_bubble_request_impl.cc:68: case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: On 2014/08/13 13:34:32, Bernhard Bauer wrote: > ...
6 years, 4 months ago (2014-08-13 14:25:51 UTC) #6
Miguel Garcia
+mpearson for the histogram change
6 years, 4 months ago (2014-08-13 14:27:41 UTC) #7
Mark P
https://codereview.chromium.org/459953002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/459953002/diff/100001/tools/metrics/histograms/histograms.xml#newcode9006 tools/metrics/histograms/histograms.xml:9006: + Deprecated 8/2014, and replaced by PermissionActions. replaced by ...
6 years, 4 months ago (2014-08-13 17:29:27 UTC) #8
Bernhard Bauer
https://codereview.chromium.org/459953002/diff/80001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/459953002/diff/80001/chrome/browser/content_settings/permission_context_base.cc#newcode58 chrome/browser/content_settings/permission_context_base.cc:58: if (shutting_down_) On 2014/08/13 14:25:50, Miguel Garcia wrote: > ...
6 years, 4 months ago (2014-08-13 21:05:08 UTC) #9
jam
why are you changing content?
6 years, 4 months ago (2014-08-15 17:32:44 UTC) #10
jam
On 2014/08/15 17:32:44, jam wrote: > why are you changing content? and to expand, i ...
6 years, 4 months ago (2014-08-15 17:33:22 UTC) #11
Miguel Garcia
On 2014/08/15 17:33:22, jam wrote: > On 2014/08/15 17:32:44, jam wrote: > > why are ...
6 years, 3 months ago (2014-09-17 14:59:10 UTC) #12
Bernhard Bauer
content_settings/ LGTM https://codereview.chromium.org/459953002/diff/180001/extensions/browser/guest_view/web_view/web_view_permission_helper.cc File extensions/browser/guest_view/web_view/web_view_permission_helper.cc (right): https://codereview.chromium.org/459953002/diff/180001/extensions/browser/guest_view/web_view/web_view_permission_helper.cc#newcode183 extensions/browser/guest_view/web_view/web_view_permission_helper.cc:183: web_view_permission_helper_delegate_-> RequestMediaAccessPermission( No space after "->"
6 years, 3 months ago (2014-09-19 09:04:24 UTC) #13
jam
On 2014/09/17 14:59:10, Miguel Garcia wrote: > On 2014/08/15 17:33:22, jam wrote: > > On ...
6 years, 3 months ago (2014-09-22 15:07:08 UTC) #14
Michael van Ouwerkerk
lgtm with nits https://chromiumcodereview.appspot.com/459953002/diff/180001/chrome/browser/geolocation/geolocation_permission_context.cc File chrome/browser/geolocation/geolocation_permission_context.cc (right): https://chromiumcodereview.appspot.com/459953002/diff/180001/chrome/browser/geolocation/geolocation_permission_context.cc#newcode30 chrome/browser/geolocation/geolocation_permission_context.cc:30: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); DCHECK_CURRENTLY_ON https://chromiumcodereview.appspot.com/459953002/diff/180001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): ...
6 years, 3 months ago (2014-09-22 17:02:56 UTC) #15
Miguel Garcia
Histograms and nits fixed. PTAL https://chromiumcodereview.appspot.com/459953002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://chromiumcodereview.appspot.com/459953002/diff/100001/tools/metrics/histograms/histograms.xml#newcode9006 tools/metrics/histograms/histograms.xml:9006: + Deprecated 8/2014, and ...
6 years, 3 months ago (2014-09-24 11:04:44 UTC) #16
Mark P
histograms.xml will lgtm once you fix the issue (in two places) below --mark https://chromiumcodereview.appspot.com/459953002/diff/220001/tools/metrics/histograms/histograms.xml File ...
6 years, 3 months ago (2014-09-24 17:59:38 UTC) #17
Miguel Garcia
Thanks! landing this now TBR=benm since the change there is a straight change for the ...
6 years, 2 months ago (2014-09-29 14:24:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/459953002/240001
6 years, 2 months ago (2014-09-29 14:26:07 UTC) #20
commit-bot: I haz the power
Committed patchset #13 (id:240001) as 87d634675a409ee085a3833cef338fa1fee7b903
6 years, 2 months ago (2014-09-29 15:31:46 UTC) #21
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/fa052070ded331c02f881cbc8332090986bc8f53 Cr-Commit-Position: refs/heads/master@{#297180}
6 years, 2 months ago (2014-09-29 15:32:34 UTC) #22
lgarron
https://codereview.chromium.org/459953002/diff/240001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/459953002/diff/240001/tools/metrics/histograms/histograms.xml#newcode9346 tools/metrics/histograms/histograms.xml:9346: + ContentSettings.PermissionActions_Geolocation. Should I be able to find ContentSettings.PermissionActions_Geolocation ...
5 years, 8 months ago (2015-04-03 23:07:25 UTC) #24
Miguel Garcia
5 years, 8 months ago (2015-04-06 09:05:43 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/459953002/diff/240001/tools/metrics/histogram...
File tools/metrics/histograms/histograms.xml (right):

https://codereview.chromium.org/459953002/diff/240001/tools/metrics/histogram...
tools/metrics/histograms/histograms.xml:9346: +   
ContentSettings.PermissionActions_Geolocation.
On 2015/04/03 23:07:24, lgarron wrote:
> Should I be able to find ContentSettings.PermissionActions_Geolocation in
> histograms.xml?

Yes, look for <histogram_suffixes name="PermissionActions"> around
https://cs.corp.google.com/#clankium/src/tools/metrics/histograms/histograms....
(takes a while to load). The histogram is defined as a stem and a set of
suffixes (one per permission).

Powered by Google App Engine
This is Rietveld 408576698