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

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

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: cleanup Created 3 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
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 be6a08f7a9590ffe60133bfe2d1b59dd4dd1d266..b4069458bd5fea8a920a24fd58a1faea8edf2213 100644
--- a/ash/mus/test/wm_test_helper.cc
+++ b/ash/mus/test/wm_test_helper.cc
@@ -101,6 +101,8 @@ void WmTestHelper::Init() {
kMaxNumberThreads, kThreadNamePrefix);
window_manager_app_->window_manager_.reset(new WindowManager(nullptr));
+ window_manager_app_->window_manager()->system_tray_delegate_ =
+ base::MakeUnique<test::TestSystemTrayDelegate>();
window_tree_client_setup_.InitForWindowManager(
window_manager_app_->window_manager_.get(),
@@ -111,11 +113,6 @@ void WmTestHelper::Init() {
window_tree_client_setup_.OwnWindowTreeClient(),
blocking_pool_owner_->pool());
- // TODO(jamescook): Pass a TestShellDelegate into WindowManager and use it to
- // create the various test delegates.
- WmShellTestApi().SetSystemTrayDelegate(
- base::MakeUnique<test::TestSystemTrayDelegate>());
-
aura::WindowTreeClient* window_tree_client =
window_manager_app_->window_manager()->window_tree_client();
window_tree_client_private_ =
@@ -148,9 +145,10 @@ void WmTestHelper::UpdateDisplay(const std::string& display_spec) {
root_window_controllers.push_back(
CreateRootWindowController(parts[i], &next_x));
}
+ const bool in_shutdown = false;
while (root_window_controllers.size() > parts.size()) {
window_manager_app_->window_manager()->DestroyRootWindowController(
- root_window_controllers.back());
+ root_window_controllers.back(), in_shutdown);
root_window_controllers.pop_back();
}
}

Powered by Google App Engine
This is Rietveld 408576698