Index: ash/mojo_interface_factory.cc |
diff --git a/ash/mojo_interface_factory.cc b/ash/mojo_interface_factory.cc |
index 8bba0b3f463b43d9694c9ae3ce12f6d514ebc0b2..c8eab24b79be8720e29115c5040156feedcdde94 100644 |
--- a/ash/mojo_interface_factory.cc |
+++ b/ash/mojo_interface_factory.cc |
@@ -8,6 +8,7 @@ |
#include "ash/accelerators/accelerator_controller.h" |
#include "ash/cast_config_controller.h" |
+#include "ash/login/lock_screen_controller.h" |
#include "ash/media_controller.h" |
#include "ash/new_window_controller.h" |
#include "ash/session/session_controller.h" |
@@ -56,6 +57,12 @@ void BindLocaleNotificationControllerOnMainThread( |
std::move(request)); |
} |
+void BindLockScreenRequestOnMainThread( |
+ const service_manager::BindSourceInfo& source_info, |
+ mojom::LockScreenRequest request) { |
+ Shell::Get()->lock_screen_controller()->BindRequest(std::move(request)); |
+} |
+ |
void BindMediaControllerRequestOnMainThread( |
const service_manager::BindSourceInfo& source_info, |
mojom::MediaControllerRequest request) { |
@@ -133,6 +140,8 @@ void RegisterInterfaces( |
registry->AddInterface( |
base::Bind(&BindLocaleNotificationControllerOnMainThread), |
main_thread_task_runner); |
+ registry->AddInterface(base::Bind(&BindLockScreenRequestOnMainThread), |
+ main_thread_task_runner); |
registry->AddInterface(base::Bind(&BindMediaControllerRequestOnMainThread), |
main_thread_task_runner); |
registry->AddInterface( |