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

Unified Diff: ash/mojo_interface_factory.cc

Issue 2848813002: Introduce ash mojo interface for lock screen action handlers (Closed)
Patch Set: . Created 3 years, 8 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 fc1f2b8ef027676821258b5f84f1a7149096439a..4fc63519df30d62674d83cb6bfe57601ec3b6a3a 100644
--- a/ash/mojo_interface_factory.cc
+++ b/ash/mojo_interface_factory.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "ash/accelerators/accelerator_controller.h"
+#include "ash/action_handler/action_handler_state_controller.h"
#include "ash/cast_config_controller.h"
#include "ash/media_controller.h"
#include "ash/new_window_controller.h"
@@ -33,6 +34,12 @@ void BindAcceleratorControllerRequestOnMainThread(
Shell::Get()->accelerator_controller()->BindRequest(std::move(request));
}
+void BindActionHandlerStateControllerRequestOnMainThread(
+ mojom::ActionHandlerStateControllerRequest request) {
+ Shell::Get()->action_handler_state_controller()->BindRequest(
+ std::move(request));
+}
+
void BindAppListRequestOnMainThread(app_list::mojom::AppListRequest request) {
Shell::Get()->app_list()->BindRequest(std::move(request));
}
@@ -98,6 +105,9 @@ void RegisterInterfaces(
registry->AddInterface(
base::Bind(&BindAcceleratorControllerRequestOnMainThread),
main_thread_task_runner);
+ registry->AddInterface(
+ base::Bind(&BindActionHandlerStateControllerRequestOnMainThread),
+ main_thread_task_runner);
registry->AddInterface(base::Bind(&BindAppListRequestOnMainThread),
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindCastConfigOnMainThread),

Powered by Google App Engine
This is Rietveld 408576698