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

Unified Diff: ash/system/web_notification/web_notification_tray.cc

Issue 114323002: Fixes the context menu for a notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 7 years 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/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index b0b75d87dfca2f01d69f3610cd4ed6a685bcfe1b..1cbfbcadd56f6f891518c40ed6ef90300551f2cd 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -527,6 +527,12 @@ bool WebNotificationTray::ShowNotifierSettings() {
return ShowMessageCenterInternal(true /* show_settings */);
}
+bool WebNotificationTray::IsContextMenuEnabled() const {
+ user::LoginStatus login_status = status_area_widget()->login_status();
+ return login_status != user::LOGGED_IN_NONE
+ && login_status != user::LOGGED_IN_LOCKED;
+}
+
message_center::MessageCenterTray* WebNotificationTray::GetMessageCenterTray() {
return message_center_tray_.get();
}

Powered by Google App Engine
This is Rietveld 408576698