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

Unified Diff: ash/wm/window_util.cc

Issue 115453004: Moves management of transients out of Window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneeded parens Created 6 years, 11 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/window_state.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index def4b6d5bad254d0464152f51db0a6e0c6d31d3f..2985f663b64222c10926d654dd3a252a589ebb74 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -134,10 +134,13 @@ void ReparentChildWithTransientChildren(aura::Window* child,
void ReparentTransientChildrenOfChild(aura::Window* child,
aura::Window* old_parent,
aura::Window* new_parent) {
- for (size_t i = 0; i < child->transient_children().size(); ++i) {
- ReparentChildWithTransientChildren(child->transient_children()[i],
- old_parent,
- new_parent);
+ for (size_t i = 0;
+ i < views::corewm::GetTransientChildren(child).size();
+ ++i) {
+ ReparentChildWithTransientChildren(
+ views::corewm::GetTransientChildren(child)[i],
+ old_parent,
+ new_parent);
}
}
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698