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

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

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: feedback 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
« no previous file with comments | « ash/mus/shell_delegate_mus.cc ('k') | ash/mus/window_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..184bee180512f15e08ff37d132db3ca8a9a3ad8b 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_for_test_ =
+ 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();
}
}
« no previous file with comments | « ash/mus/shell_delegate_mus.cc ('k') | ash/mus/window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698