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

Unified Diff: content/public/browser/content_browser_client.cc

Issue 459953002: Migrate geolocation permissions to the new common permission class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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/public/browser/content_browser_client.cc
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
index a72bc670a46e69c6c9f850f484f0756f70cfe9e6..a29c48d7f0f8e84cccab8cd8f9623fc0f9cbac08 100644
--- a/content/public/browser/content_browser_client.cc
+++ b/content/public/browser/content_browser_client.cc
@@ -217,11 +217,18 @@ void ContentBrowserClient::RequestGeolocationPermission(
int bridge_id,
const GURL& requesting_frame,
bool user_gesture,
- base::Callback<void(bool)> result_callback,
- base::Closure* cancel_callback) {
+ const base::Callback<void(bool)>& result_callback) {
result_callback.Run(true);
}
+// TODO(miguelg): replace all Create*Permission with a single
+// CreatePermission(enum permission) method.
+void ContentBrowserClient::CancelGeolocationPermissionRequest(
+ WebContents* web_contents,
+ int bridge_id,
+ const GURL& requesting_frame) {
+}
+
void ContentBrowserClient::RequestMidiSysExPermission(
WebContents* web_contents,
int bridge_id,

Powered by Google App Engine
This is Rietveld 408576698