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

Unified Diff: ash/mus/test/wm_test_helper.cc

Issue 2301353003: Changes ownership of WindowTreeClient (Closed)
Patch Set: Created 4 years, 3 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/mus/test/wm_test_helper.cc
diff --git a/ash/mus/test/wm_test_helper.cc b/ash/mus/test/wm_test_helper.cc
index a650ed7f4b3c288451362f4df3b623378e27c0f9..8494dece6797ab5594493c4017199d9d1cb86c66 100644
--- a/ash/mus/test/wm_test_helper.cc
+++ b/ash/mus/test/wm_test_helper.cc
@@ -57,12 +57,14 @@ void WmTestHelper::Init() {
window_manager_app_->window_manager_.get(), display);
window_manager_app_->InitWindowManager(
- window_tree_client_setup_.window_tree_client());
+ window_tree_client_setup_.OwnWindowTreeClient());
+ ui::WindowTreeClient* window_tree_client =
+ window_manager_app_->window_manager()->window_tree_client();
screen_->display_list()->AddDisplay(display,
views::DisplayList::Type::PRIMARY);
- ui::WindowTreeClientPrivate(window_tree_client_setup_.window_tree_client())
+ ui::WindowTreeClientPrivate(window_tree_client)
.CallWmNewDisplayAdded(display);
}
« no previous file with comments | « no previous file | ash/mus/window_manager.h » ('j') | services/ui/public/cpp/tests/test_window_tree_client_setup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698