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

Unified Diff: ash/wm/workspace/workspace_manager.cc

Issue 11421006: Desktop aura: Break aura::Window::SetParent in two. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 8 years, 1 month 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/workspace/workspace_manager.cc
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index af598e8956af08951a6fcde93b6937a956cb944a..3f1c6280a7bc554ba9bd34c270196de258c45da3 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -62,7 +62,7 @@ const int kInitialPauseTimeMS = 750;
void ReparentWindow(Window* window,
Window* new_parent,
Window* stack_beneath) {
- window->SetParent(new_parent);
+ new_parent->AddChild(window);
if (stack_beneath)
new_parent->StackChildBelow(window, stack_beneath);
for (size_t i = 0; i < window->transient_children().size(); ++i)
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698