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

Unified Diff: ui/aura/test/test_windows.cc

Issue 1484383003: Use WindowTracker when resizing root window as it may delete other window in unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/root_window_layout_manager_unittest.cc ('k') | ui/aura/window_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_windows.cc
diff --git a/ui/aura/test/test_windows.cc b/ui/aura/test/test_windows.cc
index 50f831585abe47607a6a9f8d03b9dc607698cfae..141510a3dc778776f66630c3486f6b5b0830a247 100644
--- a/ui/aura/test/test_windows.cc
+++ b/ui/aura/test/test_windows.cc
@@ -46,11 +46,11 @@ Window* CreateTestWindowWithDelegateAndType(WindowDelegate* delegate,
window->set_id(id);
window->SetType(type);
window->Init(ui::LAYER_TEXTURED);
+ window->SetProperty(aura::client::kCanMaximizeKey, true);
window->SetBounds(bounds);
window->Show();
if (parent)
parent->AddChild(window);
- window->SetProperty(aura::client::kCanMaximizeKey, true);
return window;
}
« no previous file with comments | « ash/wm/root_window_layout_manager_unittest.cc ('k') | ui/aura/window_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698