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

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

Issue 2198363002: Pass Notification into NotificationBlocker ShouldShow* methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ash build errors 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/login_state_notification_blocker_chromeos.cc
diff --git a/chrome/browser/notifications/login_state_notification_blocker_chromeos.cc b/chrome/browser/notifications/login_state_notification_blocker_chromeos.cc
index 1caad4b850247d9cc97c2cbd68f9434db2f4b218..6b74bf0359c3b3c347e005a2509a162d50db2211 100644
--- a/chrome/browser/notifications/login_state_notification_blocker_chromeos.cc
+++ b/chrome/browser/notifications/login_state_notification_blocker_chromeos.cc
@@ -46,8 +46,8 @@ LoginStateNotificationBlockerChromeOS::
}
bool LoginStateNotificationBlockerChromeOS::ShouldShowNotificationAsPopup(
- const message_center::NotifierId& notifier_id) const {
- if (ash::system_notifier::ShouldAlwaysShowPopups(notifier_id))
+ const message_center::Notification& notification) const {
+ if (ash::system_notifier::ShouldAlwaysShowPopups(notification.notifier_id()))
return true;
if (locked_)

Powered by Google App Engine
This is Rietveld 408576698