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

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

Issue 2154033003: Add gesture type value from infobar to permission report (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-user-gesture-from-permission-layer-to-permission-report
Patch Set: nit Created 4 years, 5 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 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) {}

Powered by Google App Engine
This is Rietveld 408576698