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

Unified Diff: chrome/browser/chromeos/policy/display_rotation_default_handler.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
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display_host_impl.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display_host_impl.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698