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

Unified Diff: ash/display/shutdown_observer_chromeos.cc

Issue 2739763003: Moves maintaining ShellObservers back 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
Index: ash/display/shutdown_observer_chromeos.cc
diff --git a/ash/display/shutdown_observer_chromeos.cc b/ash/display/shutdown_observer_chromeos.cc
index a29830b534fd1c341c729e34607c994651e569c8..145d2f545a5264658e97338c64e30cf9625b71b6 100644
--- a/ash/display/shutdown_observer_chromeos.cc
+++ b/ash/display/shutdown_observer_chromeos.cc
@@ -4,7 +4,7 @@
#include "ash/display/shutdown_observer_chromeos.h"
-#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "ui/display/manager/chromeos/display_configurator.h"
namespace ash {
@@ -12,11 +12,11 @@ namespace ash {
ShutdownObserver::ShutdownObserver(
display::DisplayConfigurator* display_configurator)
: display_configurator_(display_configurator) {
- WmShell::Get()->AddShellObserver(this);
+ Shell::GetInstance()->AddShellObserver(this);
}
ShutdownObserver::~ShutdownObserver() {
- WmShell::Get()->RemoveShellObserver(this);
+ Shell::GetInstance()->RemoveShellObserver(this);
}
void ShutdownObserver::OnAppTerminating() {
« no previous file with comments | « ash/display/screen_orientation_controller_chromeos.cc ('k') | ash/high_contrast/high_contrast_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698