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

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

Issue 2069343002: Pass profile to PermissionUmaUtil::PermissionIgnored (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-hooks-to-permission-layer
Patch Set: merge 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 b23ce55b6028f6057c5de2185a24717e76cf60b2..64bd56bfd8f26f13a5c91dd6cc6d84a9a6fe3067 100644
--- a/chrome/browser/notifications/notification_permission_infobar_delegate.cc
+++ b/chrome/browser/notifications/notification_permission_infobar_delegate.cc
@@ -13,19 +13,22 @@
infobars::InfoBar* NotificationPermissionInfobarDelegate::Create(
InfoBarService* infobar_service,
const GURL& requesting_frame,
+ Profile* profile,
const base::Callback<void(bool, bool)>& callback) {
return infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
std::unique_ptr<ConfirmInfoBarDelegate>(
- new NotificationPermissionInfobarDelegate(requesting_frame,
+ new NotificationPermissionInfobarDelegate(requesting_frame, profile,
callback))));
}
NotificationPermissionInfobarDelegate::NotificationPermissionInfobarDelegate(
const GURL& requesting_frame,
+ Profile* profile,
const base::Callback<void(bool, bool)>& callback)
: PermissionInfobarDelegate(requesting_frame,
content::PermissionType::NOTIFICATIONS,
CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
+ profile,
callback),
requesting_frame_(requesting_frame) {}

Powered by Google App Engine
This is Rietveld 408576698