Chromium Code Reviews| 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(); |