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

Unified Diff: ash/wm/panel_layout_manager.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/base_layout_manager_unittest.cc ('k') | ash/wm/partial_screenshot_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panel_layout_manager.cc
diff --git a/ash/wm/panel_layout_manager.cc b/ash/wm/panel_layout_manager.cc
index a1d1154126dd2b45adedd9fe08ebd27589614af8..396d0b5640de065436cf2dc6218e0bee3630e43b 100644
--- a/ash/wm/panel_layout_manager.cc
+++ b/ash/wm/panel_layout_manager.cc
@@ -91,13 +91,13 @@ PanelLayoutManager::PanelLayoutManager(aura::Window* panel_container)
views::View* content_view = new views::View;
content_view->set_background(new CalloutWidgetBackground);
callout_widget_->SetContentsView(content_view);
- Shell::GetRootWindow()->AddObserver(this);
+ Shell::GetPrimaryRootWindow()->AddObserver(this);
}
PanelLayoutManager::~PanelLayoutManager() {
if (launcher_)
launcher_->RemoveIconObserver(this);
- Shell::GetRootWindow()->RemoveObserver(this);
+ Shell::GetPrimaryRootWindow()->RemoveObserver(this);
}
void PanelLayoutManager::StartDragging(aura::Window* panel) {
« no previous file with comments | « ash/wm/base_layout_manager_unittest.cc ('k') | ash/wm/partial_screenshot_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698