summaryrefslogtreecommitdiffstats
path: root/ash/wm/shadow_controller.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-25 23:39:03 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-25 23:39:03 +0000
commit76ff037d061c897dce0794628a8c6a442b2777c4 (patch)
treea7b35d428da5de549eb9cb72d8c4fb6f6abb7faa /ash/wm/shadow_controller.cc
parentff89a332e9679cf5d704ea1a0650c4d694c71b42 (diff)
downloadchromium_src-76ff037d061c897dce0794628a8c6a442b2777c4.zip
chromium_src-76ff037d061c897dce0794628a8c6a442b2777c4.tar.gz
chromium_src-76ff037d061c897dce0794628a8c6a442b2777c4.tar.bz2
Revert 123673 - Remove a bunch more uses of RootWindow::GetInstance()
http://crbug.com/112131 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123592 Review URL: https://chromiumcodereview.appspot.com/9460025 TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/9455080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/shadow_controller.cc')
-rw-r--r--ash/wm/shadow_controller.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/ash/wm/shadow_controller.cc b/ash/wm/shadow_controller.cc
index 7e7d5f5..ed7af82 100644
--- a/ash/wm/shadow_controller.cc
+++ b/ash/wm/shadow_controller.cc
@@ -7,7 +7,6 @@
#include <utility>
#include "ash/ash_switches.h"
-#include "ash/shell.h"
#include "ash/wm/shadow.h"
#include "ash/wm/shadow_types.h"
#include "ash/wm/window_properties.h"
@@ -47,7 +46,7 @@ ShadowType GetShadowTypeFromWindow(aura::Window* window) {
ShadowController::ShadowController() {
aura::Env::GetInstance()->AddObserver(this);
// Watch for window activation changes.
- Shell::GetRootWindow()->AddObserver(this);
+ aura::RootWindow::GetInstance()->AddObserver(this);
}
ShadowController::~ShadowController() {
@@ -55,7 +54,7 @@ ShadowController::~ShadowController() {
it != window_shadows_.end(); ++it) {
it->first->RemoveObserver(this);
}
- Shell::GetRootWindow()->RemoveObserver(this);
+ aura::RootWindow::GetInstance()->RemoveObserver(this);
aura::Env::GetInstance()->RemoveObserver(this);
}