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

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

Issue 2250053002: Clean up the PermissionInfoBarDelegate hierarchy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-infobar-remember-decision
Patch Set: Created 4 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_android.h
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate_android.h b/chrome/browser/geolocation/geolocation_infobar_delegate_android.h
index a87e84da48fff3cad556d03f9060f1bb473f4873..36300c503063954cd78caf37e2cc308702257149 100644
--- a/chrome/browser/geolocation/geolocation_infobar_delegate_android.h
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate_android.h
@@ -8,14 +8,15 @@
#include <string>
#include "base/macros.h"
-#include "chrome/browser/permissions/permission_infobar_delegate.h"
+#include "chrome/browser/permissions/single_permission_infobar_delegate.h"
class InfoBarService;
// GeolocationInfoBarDelegateAndroids are created by the
// PermissionQueueController to control the display
// and handling of geolocation permission infobars to the user.
-class GeolocationInfoBarDelegateAndroid : public PermissionInfobarDelegate {
+class GeolocationInfoBarDelegateAndroid
+ : public SinglePermissionInfoBarDelegate {
public:
// Creates a geolocation infobar and delegate and adds the infobar to
// |infobar_service|. Returns the infobar if it was successfully added.
@@ -37,8 +38,6 @@ class GeolocationInfoBarDelegateAndroid : public PermissionInfobarDelegate {
int GetIconId() const override;
int GetMessageResourceId() const override;
- GURL requesting_frame_;
-
DISALLOW_COPY_AND_ASSIGN(GeolocationInfoBarDelegateAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698