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

Unified Diff: chrome/browser/geolocation/geolocation_infobar_delegate.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: Fix ups 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/geolocation_infobar_delegate.h
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate.h b/chrome/browser/geolocation/geolocation_infobar_delegate.h
index 93a6ab7d8370a0edfb26bc884e85334d94d0a555..6036cf466598d19c0c82b1ea798afcb8260ac220 100644
--- a/chrome/browser/geolocation/geolocation_infobar_delegate.h
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate.h
@@ -27,6 +27,9 @@ class GeolocationInfoBarDelegate : public ConfirmInfoBarDelegate {
const GURL& requesting_frame,
const std::string& display_languages);
+ // Make infobar visible to the user.
+ void Show(InfoBarService* infobar_service);
+
protected:
GeolocationInfoBarDelegate(InfoBarService* infobar_service,
PermissionQueueController* controller,
@@ -39,6 +42,10 @@ class GeolocationInfoBarDelegate : public ConfirmInfoBarDelegate {
// ConfirmInfoBarDelegate:
virtual bool Accept() OVERRIDE;
+ // Give the InfoBar a chance to do some work before showing
+ // to the user.
+ virtual void Initialize(InfoBarService* infobar_service);
+
// Call back to the controller, to inform of the user's decision.
void SetPermission(bool update_content_setting, bool allowed);

Powered by Google App Engine
This is Rietveld 408576698