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

Unified Diff: ash/shell.cc

Issue 2471643002: mash: remove the LockStateControllerDelegate. (Closed)
Patch Set: sky comments Created 4 years, 1 month 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/public/interfaces/shutdown.mojom ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 201c55f9918ac7cb657a633940d185d31abe21fa..9c211fc9360204fee838b499d6369311d6cd65a8 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -724,7 +724,8 @@ void Shell::Init(const ShellInitParams& init_params) {
screen_pinning_controller_.reset(
new ScreenPinningController(window_tree_host_manager_.get()));
- lock_state_controller_.reset(new LockStateController);
+ lock_state_controller_ = base::MakeUnique<LockStateController>(
+ wm_shell_->delegate()->GetShellConnector());
power_button_controller_.reset(
new PowerButtonController(lock_state_controller_.get()));
#if defined(OS_CHROMEOS)
« no previous file with comments | « ash/public/interfaces/shutdown.mojom ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698