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

Unified Diff: ash/mojo_interface_factory.cc

Issue 2876673002: mojo api for view based lockscreen (Closed)
Patch Set: Incorporate comments from patch set 8 and rebase 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
« no previous file with comments | « ash/login/ui/lock_contents_view.cc ('k') | ash/mus/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « ash/login/ui/lock_contents_view.cc ('k') | ash/mus/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698