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

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

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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
« no previous file with comments | « ash/common/system/user/user_view.cc ('k') | ash/common/test/ash_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/web_notification/web_notification_tray.cc
diff --git a/ash/common/system/web_notification/web_notification_tray.cc b/ash/common/system/web_notification/web_notification_tray.cc
index c0a3dd19c6ec4fdb80c91cb3751a2fed11719736..49c7b55233a855bf2ed6d296e75403729b823e3f 100644
--- a/ash/common/system/web_notification/web_notification_tray.cc
+++ b/ash/common/system/web_notification/web_notification_tray.cc
@@ -20,6 +20,7 @@
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/resources/vector_icons/vector_icons.h"
#include "ash/root_window_controller.h"
+#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h"
#include "base/auto_reset.h"
#include "base/i18n/number_formatting.h"
@@ -396,7 +397,7 @@ void WebNotificationTray::HidePopups() {
// Private methods.
bool WebNotificationTray::ShouldShowMessageCenter() {
- return WmShell::Get()->system_tray_delegate()->ShouldShowNotificationTray();
+ return Shell::Get()->system_tray_delegate()->ShouldShowNotificationTray();
}
bool WebNotificationTray::ShouldBlockShelfAutoHide() const {
@@ -613,10 +614,9 @@ message_center::MessageCenter* WebNotificationTray::message_center() const {
}
bool WebNotificationTray::IsLoggedIn() const {
- WmShell* shell = WmShell::Get();
- return shell->system_tray_delegate()->GetUserLoginStatus() !=
+ return Shell::Get()->system_tray_delegate()->GetUserLoginStatus() !=
LoginStatus::NOT_LOGGED_IN &&
- !shell->session_controller()->IsInSecondaryLoginScreen();
+ !WmShell::Get()->session_controller()->IsInSecondaryLoginScreen();
}
// Methods for testing
« no previous file with comments | « ash/common/system/user/user_view.cc ('k') | ash/common/test/ash_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698