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

Unified Diff: chrome/browser/ui/ash/multi_user/multi_user_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/ui/ash/multi_user/multi_user_notification_blocker_chromeos.cc
diff --git a/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.cc b/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.cc
index b36a5df2f2787e8fbc7a6b15632e2908ca042d2d..fc0b03f2f66be878632de3f57b010b225f6017f6 100644
--- a/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.cc
+++ b/chrome/browser/ui/ash/multi_user/multi_user_notification_blocker_chromeos.cc
@@ -20,19 +20,20 @@ MultiUserNotificationBlockerChromeOS::~MultiUserNotificationBlockerChromeOS() {
}
bool MultiUserNotificationBlockerChromeOS::ShouldShowNotification(
- const message_center::NotifierId& notifier_id) const {
+ const message_center::Notification& notification) const {
if (!IsActive())
return true;
- if (ash::system_notifier::IsAshSystemNotifier(notifier_id))
+ if (ash::system_notifier::IsAshSystemNotifier(notification.notifier_id()))
return true;
- return AccountId::FromUserEmail(notifier_id.profile_id) == active_account_id_;
+ return AccountId::FromUserEmail(notification.notifier_id().profile_id) ==
+ active_account_id_;
}
bool MultiUserNotificationBlockerChromeOS::ShouldShowNotificationAsPopup(
- const message_center::NotifierId& notifier_id) const {
- return ShouldShowNotification(notifier_id);
+ const message_center::Notification& notification) const {
+ return ShouldShowNotification(notification);
}
void MultiUserNotificationBlockerChromeOS::ActiveUserChanged(

Powered by Google App Engine
This is Rietveld 408576698