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

Unified Diff: chrome/browser/geolocation/chrome_geolocation_permission_context.h

Issue 23345004: Fix Android strict-mode violation in GeoLocation info bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments / fix tests Created 6 years, 10 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: chrome/browser/geolocation/chrome_geolocation_permission_context.h
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context.h b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
index 0c7e600335367a3ad3e4ca8347b78bc974de1151..ef1383879d9671b94fc9f0480a14b271314b5767 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context.h
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
@@ -69,6 +69,7 @@ class ChromeGeolocationPermissionContext
const PermissionRequestID& id,
const GURL& requesting_frame,
const GURL& embedder,
+ const std::string& accept_button_label,
base::Callback<void(bool)> callback);
// Called when permission is granted without interactively asking
@@ -89,6 +90,13 @@ class ChromeGeolocationPermissionContext
// Removes any pending InfoBar request.
void CancelPendingInfobarRequest(const PermissionRequestID& id);
+ // Creates and show an info bar.
+ void CreateInfoBarRequest(const PermissionRequestID& id,
+ const GURL& requesting_frame,
+ const GURL& embedder,
+ const std::string accept_button_label,
+ base::Callback<void(bool)> callback);
+
// These must only be accessed from the UI thread.
Profile* const profile_;
bool shutting_down_;

Powered by Google App Engine
This is Rietveld 408576698