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

Unified Diff: ash/common/session/session_state_observer.cc

Issue 2761373002: Move yet 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/mojo_interface_factory.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/session/session_state_observer.cc
diff --git a/ash/common/session/session_state_observer.cc b/ash/common/session/session_state_observer.cc
index 709a92da27cb27153e1db0717bb1e0e7395d54b7..303a2c0ebf37bcacc9e7e59824e87b9511b3aaa4 100644
--- a/ash/common/session/session_state_observer.cc
+++ b/ash/common/session/session_state_observer.cc
@@ -5,20 +5,19 @@
#include "ash/common/session/session_state_observer.h"
#include "ash/common/session/session_controller.h"
-#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
namespace ash {
ScopedSessionStateObserver::ScopedSessionStateObserver(
SessionStateObserver* observer)
: observer_(observer) {
- WmShell::Get()->session_controller()->AddSessionStateObserver(observer_);
+ Shell::Get()->session_controller()->AddSessionStateObserver(observer_);
}
ScopedSessionStateObserver::~ScopedSessionStateObserver() {
- if (WmShell::Get()) {
- WmShell::Get()->session_controller()->RemoveSessionStateObserver(observer_);
- }
+ if (Shell::HasInstance())
+ Shell::Get()->session_controller()->RemoveSessionStateObserver(observer_);
}
} // namespace ash
« no previous file with comments | « ash/common/mojo_interface_factory.cc ('k') | ash/common/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698