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

Unified Diff: chrome/browser/notifications/notification_permission_infobar_delegate.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/notifications/notification_permission_infobar_delegate.h
diff --git a/chrome/browser/notifications/notification_permission_infobar_delegate.h b/chrome/browser/notifications/notification_permission_infobar_delegate.h
index 19240d6291a53808f79b3d1d995d799b1c6e9ec7..1cc795f253eb2e9099070216e82e6067864f66e2 100644
--- a/chrome/browser/notifications/notification_permission_infobar_delegate.h
+++ b/chrome/browser/notifications/notification_permission_infobar_delegate.h
@@ -8,11 +8,12 @@
#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;
-class NotificationPermissionInfobarDelegate : public PermissionInfobarDelegate {
+class NotificationPermissionInfoBarDelegate
+ : public SinglePermissionInfoBarDelegate {
public:
// Creates a Notification permission infobar and delegate and adds the
// infobar to |infobar_service|. Returns the infobar if it was successfully
@@ -24,20 +25,18 @@ class NotificationPermissionInfobarDelegate : public PermissionInfobarDelegate {
const PermissionSetCallback& callback);
private:
- NotificationPermissionInfobarDelegate(const GURL& requesting_frame,
+ NotificationPermissionInfoBarDelegate(const GURL& requesting_frame,
bool user_gesture,
Profile* profile,
const PermissionSetCallback& callback);
- ~NotificationPermissionInfobarDelegate() override;
+ ~NotificationPermissionInfoBarDelegate() override;
- // PermissionInfoBarDelegate:
+ // SinglePermissionInfoBarDelegate:
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
int GetIconId() const override;
int GetMessageResourceId() const override;
- GURL requesting_frame_;
-
- DISALLOW_COPY_AND_ASSIGN(NotificationPermissionInfobarDelegate);
+ DISALLOW_COPY_AND_ASSIGN(NotificationPermissionInfoBarDelegate);
};
#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698