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

Unified Diff: ash/mojo_interface_factory.cc

Issue 2876673002: mojo api for view based lockscreen (Closed)
Patch Set: comment Created 3 years, 7 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/mojo_interface_factory.cc
diff --git a/ash/mojo_interface_factory.cc b/ash/mojo_interface_factory.cc
index 04d32fbab38a12b788351d0c2cdeb3abbe358acc..507b2a9c30e0f02b614b816adbc41e54a4068936 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"
@@ -55,6 +56,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) {
@@ -132,6 +139,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(

Powered by Google App Engine
This is Rietveld 408576698