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

Unified Diff: ash/common/wm/panels/panel_layout_manager.cc

Issue 2737213002: Update window_parenting_utils to use aura::window (Closed)
Patch Set: fix Created 3 years, 9 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/common/wm/panels/panel_layout_manager.cc
diff --git a/ash/common/wm/panels/panel_layout_manager.cc b/ash/common/wm/panels/panel_layout_manager.cc
index 66ddd3cee80cc76ce0dcf02dc5af21f1b07b47f7..ee815ff11f1d8e774f4087dcae32c685efc84fa8 100644
--- a/ash/common/wm/panels/panel_layout_manager.cc
+++ b/ash/common/wm/panels/panel_layout_manager.cc
@@ -351,7 +351,9 @@ void PanelLayoutManager::OnWindowAddedToLayout(WmWindow* child) {
WmWindow* old_parent = child->GetParent();
child->SetParentUsingContext(child,
child->GetRootWindow()->GetBoundsInScreen());
- wm::ReparentTransientChildrenOfChild(child, old_parent, child->GetParent());
+ wm::ReparentTransientChildrenOfChild(child->aura_window(),
+ old_parent->aura_window(),
+ child->GetParent()->aura_window());
DCHECK(child->GetParent()->GetShellWindowId() !=
kShellWindowId_PanelContainer);
return;

Powered by Google App Engine
This is Rietveld 408576698