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

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

Issue 2226633002: Add a feature to display a persistence toggle for permission prompts on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits, verbal change to make it geolocation-only 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.cc
diff --git a/chrome/browser/notifications/notification_permission_infobar_delegate.cc b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
index 2479e88e9ce6fa0fe20e0cceb36116b77a682100..2ab8c83c0e4d93f196d0b64364064782c9f25d67 100644
--- a/chrome/browser/notifications/notification_permission_infobar_delegate.cc
+++ b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
@@ -15,9 +15,9 @@ infobars::InfoBar* NotificationPermissionInfobarDelegate::Create(
const GURL& requesting_frame,
bool user_gesture,
Profile* profile,
- const base::Callback<void(bool, bool)>& callback) {
- return infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
- std::unique_ptr<ConfirmInfoBarDelegate>(
+ const PermissionSetCallback& callback) {
+ return infobar_service->AddInfoBar(
+ CreatePermissionInfoBar(std::unique_ptr<PermissionInfobarDelegate>(
new NotificationPermissionInfobarDelegate(
requesting_frame, user_gesture, profile, callback))));
}
@@ -26,7 +26,7 @@ NotificationPermissionInfobarDelegate::NotificationPermissionInfobarDelegate(
const GURL& requesting_frame,
bool user_gesture,
Profile* profile,
- const base::Callback<void(bool, bool)>& callback)
+ const PermissionSetCallback& callback)
: PermissionInfobarDelegate(requesting_frame,
content::PermissionType::NOTIFICATIONS,
CONTENT_SETTINGS_TYPE_NOTIFICATIONS,

Powered by Google App Engine
This is Rietveld 408576698