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

Unified Diff: ash/wm/shadow_controller.cc

Issue 10442017: Rename GetRootWindow() -> GetPrimaryRootWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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
Index: ash/wm/shadow_controller.cc
diff --git a/ash/wm/shadow_controller.cc b/ash/wm/shadow_controller.cc
index bbf555074f7f23dffd5cef2153fa7dce1383aa68..718ef1527a2b89643ec7d6e32df2352623e68473 100644
--- a/ash/wm/shadow_controller.cc
+++ b/ash/wm/shadow_controller.cc
@@ -72,11 +72,11 @@ ShadowController::ShadowController()
: ALLOW_THIS_IN_INITIALIZER_LIST(observer_manager_(this)) {
aura::Env::GetInstance()->AddObserver(this);
// Watch for window activation changes.
- Shell::GetRootWindow()->AddObserver(this);
+ Shell::GetPrimaryRootWindow()->AddObserver(this);
}
ShadowController::~ShadowController() {
- Shell::GetRootWindow()->RemoveObserver(this);
+ Shell::GetPrimaryRootWindow()->RemoveObserver(this);
aura::Env::GetInstance()->RemoveObserver(this);
}

Powered by Google App Engine
This is Rietveld 408576698