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

Unified Diff: chrome/browser/ui/views/message_center/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: chrome/browser/ui/views/message_center/web_notification_tray.cc
diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.cc b/chrome/browser/ui/views/message_center/web_notification_tray.cc
index 7268b5d144c6430203caf727abc56ac9f471f59e..8cab3faddd05c7013c199b228514f77a0a5ba9c8 100644
--- a/chrome/browser/ui/views/message_center/web_notification_tray.cc
+++ b/chrome/browser/ui/views/message_center/web_notification_tray.cc
@@ -191,6 +191,12 @@ bool WebNotificationTray::ShowNotifierSettings() {
return true;
}
+bool WebNotificationTray::IsContextMenuEnabled() const {
+ // It can always return true because the notifications are invisible if
+ // the context menu shouldn't be enabled, such as in the lock screen.
+ return true;
+}
+
void WebNotificationTray::OnMessageCenterTrayChanged() {
if (status_icon_) {
bool quiet_mode_state = message_center()->IsQuietMode();
« no previous file with comments | « chrome/browser/ui/views/message_center/web_notification_tray.h ('k') | ui/message_center/message_center.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698