diff options
Diffstat (limited to 'ui/aura_shell/shadow_controller.cc')
-rw-r--r-- | ui/aura_shell/shadow_controller.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/aura_shell/shadow_controller.cc b/ui/aura_shell/shadow_controller.cc index b93876e..46670ff 100644 --- a/ui/aura_shell/shadow_controller.cc +++ b/ui/aura_shell/shadow_controller.cc @@ -19,7 +19,7 @@ namespace aura_shell { namespace internal { ShadowController::ShadowController() { - aura::RootWindow::GetInstance()->AddObserver(this); + aura::RootWindow::GetInstance()->AddRootWindowObserver(this); } ShadowController::~ShadowController() { @@ -27,7 +27,7 @@ ShadowController::~ShadowController() { it != window_shadows_.end(); ++it) { it->first->RemoveObserver(this); } - aura::RootWindow::GetInstance()->RemoveObserver(this); + aura::RootWindow::GetInstance()->RemoveRootWindowObserver(this); } void ShadowController::OnWindowInitialized(aura::Window* window) { |