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

Unified Diff: ash/mus/window_manager.cc

Issue 2741273002: chromeos: Promotes more from WmShell to Shell (Closed)
Patch Set: feedback Created 3 years, 9 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/context_menu_mus.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index 8818e3cbdd393d96889b57860a3bdf4eaa865c69..3476cc5f50d21775db6d12b1fa4bf715074796a2 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -195,10 +195,12 @@ void WindowManager::CreateShell(
ShellInitParams init_params;
WmShellMus* wm_shell = new WmShellMus(
WmWindow::Get(window_tree_host->window()),
- shell_delegate_for_test_ ? std::move(shell_delegate_for_test_)
- : base::MakeUnique<ShellDelegateMus>(connector_),
this, pointer_watcher_event_router_.get(),
create_session_state_delegate_stub_for_test_);
+ // Shell::CreateInstance() takes ownership of ShellDelegate.
+ init_params.delegate = shell_delegate_for_test_
+ ? shell_delegate_for_test_.release()
+ : new ShellDelegateMus(connector_);
init_params.primary_window_tree_host = window_tree_host.release();
init_params.wm_shell = wm_shell;
init_params.blocking_pool = blocking_pool_.get();
« no previous file with comments | « ash/mus/context_menu_mus.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698