| 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 64bd56bfd8f26f13a5c91dd6cc6d84a9a6fe3067..2479e88e9ce6fa0fe20e0cceb36116b77a682100 100644
|
| --- a/chrome/browser/notifications/notification_permission_infobar_delegate.cc
|
| +++ b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
|
| @@ -13,21 +13,24 @@
|
| infobars::InfoBar* NotificationPermissionInfobarDelegate::Create(
|
| InfoBarService* infobar_service,
|
| 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>(
|
| - new NotificationPermissionInfobarDelegate(requesting_frame, profile,
|
| - callback))));
|
| + new NotificationPermissionInfobarDelegate(
|
| + requesting_frame, user_gesture, profile, callback))));
|
| }
|
|
|
| NotificationPermissionInfobarDelegate::NotificationPermissionInfobarDelegate(
|
| const GURL& requesting_frame,
|
| + bool user_gesture,
|
| Profile* profile,
|
| const base::Callback<void(bool, bool)>& callback)
|
| : PermissionInfobarDelegate(requesting_frame,
|
| content::PermissionType::NOTIFICATIONS,
|
| CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
|
| + user_gesture,
|
| profile,
|
| callback),
|
| requesting_frame_(requesting_frame) {}
|
|
|