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

Unified Diff: ash/mus/window_manager.cc

Issue 2741273002: chromeos: Promotes more from WmShell to Shell (Closed)
Patch Set: cleanup 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
Index: ash/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index 8818e3cbdd393d96889b57860a3bdf4eaa865c69..faf4d480f5805063f715c34eb57fd9361ca9d017 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -195,10 +195,11 @@ 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_);
+ init_params.delegate = shell_delegate_for_test_
James Cook 2017/03/11 00:40:43 Can you add a comment by ShellInitParams::delegate
sky 2017/03/13 15:23:19 Done.
+ ? 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();

Powered by Google App Engine
This is Rietveld 408576698