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

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: Added back some asserts / comments. Created 7 years, 4 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..3dd3d22e86f19919d9209c4c7cd2a7c63b9336e3 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);
bulach 2013/09/04 18:48:53 nit: indentation
acleung1 2013/09/05 21:50:16 Done.
+
// These must only be accessed from the UI thread.
Profile* const profile_;
bool shutting_down_;

Powered by Google App Engine
This is Rietveld 408576698