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

Unified Diff: components/mus/ws/test_utils.cc

Issue 2089023002: Promotes remaining global window manager state into WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 6 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: components/mus/ws/test_utils.cc
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc
index a371a0bb4708f24d86a1cfebdcbfad4651a3f8ae..ada01b34fbe754b6fa565795dd91c4bc7170dd44 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -145,9 +145,11 @@ int EventDispatcherTestApi::NumberPointerTargetsForWindow(
// TestDisplayBinding ---------------------------------------------------------
WindowTree* TestDisplayBinding::CreateWindowTree(ServerWindow* root) {
- return window_server_->EmbedAtWindow(
+ WindowTree* tree = window_server_->EmbedAtWindow(
root, shell::mojom::kRootUserID, mus::mojom::WindowTreeClientPtr(),
base::WrapUnique(new WindowManagerAccessPolicy));
+ tree->ConfigureWindowManager();
+ return tree;
}
// TestWindowManager ----------------------------------------------------------
« no previous file with comments | « components/mus/ws/global_window_manager_state.cc ('k') | components/mus/ws/user_display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698