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

Unified Diff: ash/wm/shadow_controller.cc

Issue 10442017: Rename GetRootWindow() -> GetPrimaryRootWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git-try -b linux_chromeos,win_aura 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
« no previous file with comments | « ash/wm/screen_dimmer_unittest.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « ash/wm/screen_dimmer_unittest.cc ('k') | ash/wm/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698