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

Issue 235633002: <webview>: Move Geolocation permission to chrome layer. (Closed)

Created:
6 years, 8 months ago by Fady Samuel
Modified:
6 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, Michael van Ouwerkerk, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

<webview>: Move Geolocation permission to chrome layer. This CL also exposes the userGesture field to the geolocation permissionrequest event. BUG=330264 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=263926

Patch Set 1 #

Patch Set 2 : More cleanup + Updated UMA #

Total comments: 1

Patch Set 3 : Reordered permission names #

Total comments: 14

Patch Set 4 : Updated Addressed comments #

Patch Set 5 : Addressed comments and Merge with ToT #

Total comments: 4

Patch Set 6 : Addressed jam's comments #

Patch Set 7 : Remove unnecessary includes #

Patch Set 8 : Updated actions.xml #

Total comments: 1

Patch Set 9 : Addressed comments #

Patch Set 10 : Fixed test #

Patch Set 11 : Fixed tests in Debug mode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -381 lines) Patch
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -8 lines 0 comments Download
M chrome/browser/guestview/guestview_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guestview/guestview_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_guest.h View 1 2 3 4 5 4 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/guestview/webview/webview_guest.cc View 1 2 3 4 5 11 chunks +148 lines, -43 lines 0 comments Download
M chrome/browser/guestview/webview/webview_permission_types.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/geolocation/cancel_request/embedder.js View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/geolocation/embedder_has_no_permission/embedder.js View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/geolocation/embedder_has_permission/embedder.js View 1 chunk +0 lines, -4 lines 0 comments Download
D content/browser/browser_plugin/browser_plugin_geolocation_permission_context.h View 1 chunk +0 lines, -45 lines 0 comments Download
D content/browser/browser_plugin/browser_plugin_geolocation_permission_context.cc View 1 chunk +0 lines, -97 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 chunks +1 line, -22 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 chunks +3 lines, -115 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -15 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.cc View 1 2 3 4 5 6 1 chunk +0 lines, -8 lines 0 comments Download
M content/public/common/browser_plugin_permission_type.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Fady Samuel
6 years, 8 months ago (2014-04-11 18:24:26 UTC) #1
lazyboy
https://codereview.chromium.org/235633002/diff/20001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc File chrome/browser/geolocation/chrome_geolocation_permission_context.cc (right): https://codereview.chromium.org/235633002/diff/20001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#newcode162 chrome/browser/geolocation/chrome_geolocation_permission_context.cc:162: WebViewGuest* guest = WebViewGuest::FromWebContents(web_contents); The guest specialization code lying ...
6 years, 8 months ago (2014-04-11 19:27:05 UTC) #2
Fady Samuel
On 2014/04/11 19:27:05, lazyboy wrote: > https://codereview.chromium.org/235633002/diff/20001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc > File chrome/browser/geolocation/chrome_geolocation_permission_context.cc > (right): > > https://codereview.chromium.org/235633002/diff/20001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#newcode162 ...
6 years, 8 months ago (2014-04-11 19:47:52 UTC) #3
Fady Samuel
PTAL
6 years, 8 months ago (2014-04-11 21:20:18 UTC) #4
lazyboy
https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/guestview_constants.h File chrome/browser/guestview/guestview_constants.h (right): https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/guestview_constants.h#newcode13 chrome/browser/guestview/guestview_constants.h:13: extern const char kUserGesture[]; nit: sort within group. https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc ...
6 years, 8 months ago (2014-04-11 21:47:21 UTC) #5
Fady Samuel
PTAL https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc File chrome/browser/guestview/webview/webview_guest.cc (right): https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc#newcode574 chrome/browser/guestview/webview/webview_guest.cc:574: base::Unretained(this), On 2014/04/11 21:47:21, lazyboy wrote: > Same ...
6 years, 8 months ago (2014-04-11 21:57:15 UTC) #6
Fady Samuel
PTAL https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc File chrome/browser/guestview/webview/webview_guest.cc (right): https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc#newcode574 chrome/browser/guestview/webview/webview_guest.cc:574: base::Unretained(this), On 2014/04/11 21:47:21, lazyboy wrote: > Same ...
6 years, 8 months ago (2014-04-11 21:57:16 UTC) #7
lazyboy
lgtm https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc File chrome/browser/guestview/webview/webview_guest.cc (right): https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc#newcode558 chrome/browser/guestview/webview/webview_guest.cc:558: nit: remove empty line. https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc#newcode574 chrome/browser/guestview/webview/webview_guest.cc:574: base::Unretained(this), On ...
6 years, 8 months ago (2014-04-11 22:00:53 UTC) #8
Fady Samuel
+jam@ for content/public changes. https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc File chrome/browser/guestview/webview/webview_guest.cc (right): https://codereview.chromium.org/235633002/diff/40001/chrome/browser/guestview/webview/webview_guest.cc#newcode574 chrome/browser/guestview/webview/webview_guest.cc:574: base::Unretained(this), On 2014/04/11 22:00:53, lazyboy ...
6 years, 8 months ago (2014-04-14 17:30:02 UTC) #9
jam
https://codereview.chromium.org/235633002/diff/80001/content/public/browser/browser_plugin_guest_delegate.cc File content/public/browser/browser_plugin_guest_delegate.cc (right): https://codereview.chromium.org/235633002/diff/80001/content/public/browser/browser_plugin_guest_delegate.cc#newcode35 content/public/browser/browser_plugin_guest_delegate.cc:35: std::string())); why not just an empty method? in general ...
6 years, 8 months ago (2014-04-14 18:11:54 UTC) #10
Fady Samuel
PTAL https://codereview.chromium.org/235633002/diff/80001/content/public/browser/browser_plugin_guest_delegate.cc File content/public/browser/browser_plugin_guest_delegate.cc (right): https://codereview.chromium.org/235633002/diff/80001/content/public/browser/browser_plugin_guest_delegate.cc#newcode35 content/public/browser/browser_plugin_guest_delegate.cc:35: std::string())); On 2014/04/14 18:11:55, jam wrote: > why ...
6 years, 8 months ago (2014-04-14 18:51:13 UTC) #11
jam
lgtm
6 years, 8 months ago (2014-04-14 19:08:19 UTC) #12
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 8 months ago (2014-04-14 19:08:47 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/235633002/120001
6 years, 8 months ago (2014-04-14 19:10:18 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 19:46:52 UTC) #15
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=61249
6 years, 8 months ago (2014-04-14 19:46:52 UTC) #16
Fady Samuel
6 years, 8 months ago (2014-04-14 20:23:35 UTC) #17
Fady Samuel
+asvitkine@ for actions.xml
6 years, 8 months ago (2014-04-14 20:24:27 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/235633002/diff/140001/tools/metrics/actions/actions.xml File tools/metrics/actions/actions.xml (left): https://codereview.chromium.org/235633002/diff/140001/tools/metrics/actions/actions.xml#oldcode1746 tools/metrics/actions/actions.xml:1746: <action name="BrowserPlugin.PermissionDeny.Geolocation"> Instead of removing these, please mark them ...
6 years, 8 months ago (2014-04-14 20:36:30 UTC) #19
Fady Samuel
PTAL Alexei
6 years, 8 months ago (2014-04-14 20:50:49 UTC) #20
Alexei Svitkine (slow)
LGTM, thanks
6 years, 8 months ago (2014-04-14 21:11:53 UTC) #21
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 8 months ago (2014-04-14 21:12:24 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/235633002/160001
6 years, 8 months ago (2014-04-14 21:14:53 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 22:00:03 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-14 22:00:03 UTC) #25
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 8 months ago (2014-04-14 22:17:11 UTC) #26
Fady Samuel
The CQ bit was unchecked by fsamuel@chromium.org
6 years, 8 months ago (2014-04-14 22:17:11 UTC) #27
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 8 months ago (2014-04-14 22:17:11 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/235633002/180001
6 years, 8 months ago (2014-04-14 22:18:24 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 23:22:57 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-14 23:22:58 UTC) #31
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 8 months ago (2014-04-15 15:39:45 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/235633002/190001
6 years, 8 months ago (2014-04-15 15:40:03 UTC) #33
commit-bot: I haz the power
6 years, 8 months ago (2014-04-15 18:19:55 UTC) #34
Message was sent while issue was closed.
Change committed as 263926

Powered by Google App Engine
This is Rietveld 408576698