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

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: addresses comments Created 7 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: 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 06b324d0e21bba688826007791262660252128e5..8027707c92826654b15a671a5fe422e0f38313d2 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context.h
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
@@ -84,6 +84,12 @@ 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,
+ 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