Index: chrome/browser/chromeos/policy/display_rotation_default_handler.cc |
diff --git a/chrome/browser/chromeos/policy/display_rotation_default_handler.cc b/chrome/browser/chromeos/policy/display_rotation_default_handler.cc |
index 0e083584c6f975a81955a8f1a0ac0a4da523317c..44f55d71d5edc3a818571709c48ec19e2adaad36 100644 |
--- a/chrome/browser/chromeos/policy/display_rotation_default_handler.cc |
+++ b/chrome/browser/chromeos/policy/display_rotation_default_handler.cc |
@@ -6,7 +6,6 @@ |
#include <stddef.h> |
-#include "ash/common/wm_shell.h" |
#include "ash/shell.h" |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
@@ -22,7 +21,7 @@ namespace policy { |
DisplayRotationDefaultHandler::DisplayRotationDefaultHandler() { |
ash::Shell::GetInstance()->window_tree_host_manager()->AddObserver(this); |
- ash::WmShell::Get()->AddShellObserver(this); |
+ ash::Shell::GetInstance()->AddShellObserver(this); |
settings_observer_ = chromeos::CrosSettings::Get()->AddSettingsObserver( |
chromeos::kDisplayRotationDefault, |
base::Bind(&DisplayRotationDefaultHandler::OnCrosSettingsChanged, |
@@ -43,7 +42,7 @@ void DisplayRotationDefaultHandler::OnDisplayConfigurationChanged() { |
void DisplayRotationDefaultHandler::OnWindowTreeHostManagerShutdown() { |
ash::Shell::GetInstance()->window_tree_host_manager()->RemoveObserver(this); |
- ash::WmShell::Get()->RemoveShellObserver(this); |
+ ash::Shell::GetInstance()->RemoveShellObserver(this); |
settings_observer_.reset(); |
base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); |
} |