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

Unified Diff: content/browser/geolocation/geolocation_dispatcher_host.cc

Issue 571483002: Refactor content client to include a single Request/CancelPermission method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@geoloc_permission
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/geolocation_dispatcher_host.cc
diff --git a/content/browser/geolocation/geolocation_dispatcher_host.cc b/content/browser/geolocation/geolocation_dispatcher_host.cc
index a778dfab2a3092096f9f43514f2c7b0d1475139d..2aaad9b6b9d6481c194a3939db6fb8af179e166a 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.cc
+++ b/content/browser/geolocation/geolocation_dispatcher_host.cc
@@ -156,7 +156,8 @@ void GeolocationDispatcherHost::OnRequestPermission(
render_frame_id, render_process_id, bridge_id);
pending_permissions_.push_back(pending_permission);
- GetContentClient()->browser()->RequestGeolocationPermission(
+ GetContentClient()->browser()->RequestPermission(
+ content::PERMISSION_GEOLOCATION,
web_contents(),
bridge_id,
requesting_frame,
@@ -176,8 +177,9 @@ void GeolocationDispatcherHost::OnCancelPermissionRequest(
if (pending_permissions_[i].render_process_id == render_process_id &&
pending_permissions_[i].render_frame_id == render_frame_id &&
pending_permissions_[i].bridge_id == bridge_id) {
- GetContentClient()->browser()->CancelGeolocationPermissionRequest(
- web_contents(), bridge_id, requesting_frame);
+ GetContentClient()->browser()->CancelPermissionRequest(
+ content::PERMISSION_GEOLOCATION,
+ web_contents(), bridge_id, requesting_frame);
pending_permissions_.erase(pending_permissions_.begin() + i);
return;
« no previous file with comments | « chrome/browser/media/protected_media_identifier_permission_context.cc ('k') | content/browser/media/cdm/browser_cdm_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698