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

Unified Diff: chrome/browser/notifications/notification_permission_infobar_delegate.cc

Issue 2675483002: Replace PermissionType in chrome/ with ContentSettingsType (Closed)
Patch Set: rebase + include content_settings_types.h more Created 3 years, 10 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.cc
diff --git a/chrome/browser/notifications/notification_permission_infobar_delegate.cc b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
index 139259926b91ef7c90527a12104429b5a77d1202..c41486ec0aa10ab7ede78007aa3490a0294c022b 100644
--- a/chrome/browser/notifications/notification_permission_infobar_delegate.cc
+++ b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
@@ -8,19 +8,18 @@
#include "chrome/grit/generated_resources.h"
NotificationPermissionInfoBarDelegate::NotificationPermissionInfoBarDelegate(
- const content::PermissionType& permission_type,
+ ContentSettingsType type,
const GURL& requesting_frame,
bool user_gesture,
Profile* profile,
const PermissionSetCallback& callback)
: PermissionInfoBarDelegate(requesting_frame,
- permission_type,
- CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
+ type,
user_gesture,
profile,
callback) {
- DCHECK(permission_type == content::PermissionType::NOTIFICATIONS ||
- permission_type == content::PermissionType::PUSH_MESSAGING);
+ DCHECK(type == CONTENT_SETTINGS_TYPE_NOTIFICATIONS ||
+ type == CONTENT_SETTINGS_TYPE_PUSH_MESSAGING);
}
NotificationPermissionInfoBarDelegate::~NotificationPermissionInfoBarDelegate()

Powered by Google App Engine
This is Rietveld 408576698