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

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

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: cleanup 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
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 28f6586be82710dbf3b58a24f5bd06b4f987ef5c..e33b5c867d170e9986746e1536fa7f8143fc47b2 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->GetSessionStateDelegate()->IsInSecondaryLoginScreen();
+ !WmShell::Get()->GetSessionStateDelegate()->IsInSecondaryLoginScreen();
}
// Methods for testing
« no previous file with comments | « ash/common/system/user/user_view.cc ('k') | ash/common/test/ash_test.cc » ('j') | ash/shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698