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

Unified Diff: ash/mus/window_manager.cc

Issue 2688353005: Fix shelf alignment and auto-hide initialization. (Closed)
Patch Set: Fix mash_unittests by installing a TestShellDelegate. Created 3 years, 10 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 19db97b64c5d7d3374f7786876d5540ae3502ce2..ce905d7b293578c5c780cb37bb54754476b2f8e6 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -9,7 +9,6 @@
#include <utility>
#include "ash/common/session/session_controller.h"
-#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/wm/container_finder.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_window.h"
@@ -190,11 +189,11 @@ void WindowManager::CreateShell(
DCHECK(!created_shell_);
created_shell_ = true;
ShellInitParams init_params;
- WmShellMus* wm_shell =
- new WmShellMus(WmWindow::Get(window_tree_host->window()),
- base::MakeUnique<ShellDelegateMus>(
- connector_, std::move(system_tray_delegate_for_test_)),
- this, pointer_watcher_event_router_.get());
+ 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());
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