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

Unified Diff: ash/system/chromeos/managed/tray_locally_managed_user.cc

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 6 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: ash/system/chromeos/managed/tray_locally_managed_user.cc
diff --git a/ash/system/chromeos/managed/tray_locally_managed_user.cc b/ash/system/chromeos/managed/tray_locally_managed_user.cc
index 2758879286d4e6f0b6518385a3090f59588e03a2..7c22016e40ef1210496bf49c57bd79a1fd3c0bb5 100644
--- a/ash/system/chromeos/managed/tray_locally_managed_user.cc
+++ b/ash/system/chromeos/managed/tray_locally_managed_user.cc
@@ -39,7 +39,8 @@ void TrayLocallyManagedUser::UpdateMessage() {
GetLocallyManagedUserMessage();
if (tray_view_)
tray_view_->SetMessage(message);
- if (message_center::MessageCenter::Get()->HasNotification(kNotificationId))
+ if (message_center::MessageCenter::Get()->FindVisibleNotificationById(
+ kNotificationId))
CreateOrUpdateNotification(message);
}

Powered by Google App Engine
This is Rietveld 408576698