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

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

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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_confirm_infobar_delegate.h
===================================================================
--- chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h (revision 175396)
+++ chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h (working copy)
@@ -19,6 +19,15 @@
// and handling of geolocation permission infobars to the user.
class GeolocationConfirmInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
+ // Creates a geolocation delegate and adds it to |infobar_service|. Returns
+ // the delegate if it was successfully added.
+ static InfoBarDelegate* Create(InfoBarService* infobar_service,
+ GeolocationInfoBarQueueController* controller,
+ const GeolocationPermissionRequestID& id,
+ const GURL& requesting_frame,
+ const std::string& display_languages);
+
+ protected:
GeolocationConfirmInfoBarDelegate(
InfoBarService* infobar_service,
GeolocationInfoBarQueueController* controller,
@@ -28,7 +37,6 @@
const GeolocationPermissionRequestID& id() const { return id_; }
- protected:
// ConfirmInfoBarDelegate:
virtual gfx::Image* GetIcon() const OVERRIDE;
virtual Type GetInfoBarType() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698