Index: ui/aura_shell/shadow_controller.cc |
=================================================================== |
--- ui/aura_shell/shadow_controller.cc (revision 114022) |
+++ ui/aura_shell/shadow_controller.cc (working copy) |
@@ -19,7 +19,7 @@ |
namespace internal { |
ShadowController::ShadowController() { |
- aura::RootWindow::GetInstance()->AddObserver(this); |
+ aura::RootWindow::GetInstance()->AddRootWindowObserver(this); |
} |
ShadowController::~ShadowController() { |
@@ -27,7 +27,7 @@ |
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) { |