Index: ash/common/mojo_interface_factory.cc |
diff --git a/ash/common/mojo_interface_factory.cc b/ash/common/mojo_interface_factory.cc |
index e359a741b1a700e5b55404310c33f86b170db1d3..3d46f113e19e3c6376c4842d2fe7b32daec85997 100644 |
--- a/ash/common/mojo_interface_factory.cc |
+++ b/ash/common/mojo_interface_factory.cc |
@@ -6,6 +6,7 @@ |
#include <utility> |
+#include "ash/common/accelerators/accelerator_controller.h" |
#include "ash/common/cast_config_controller.h" |
#include "ash/common/shelf/shelf_controller.h" |
#include "ash/common/shutdown_controller.h" |
@@ -25,6 +26,11 @@ namespace ash { |
namespace { |
+void BindAcceleratorControllerRequestOnMainThread( |
+ mojom::AcceleratorControllerRequest request) { |
+ WmShell::Get()->accelerator_controller()->BindRequest(std::move(request)); |
+} |
+ |
void BindCastConfigOnMainThread(mojom::CastConfigRequest request) { |
WmShell::Get()->cast_config()->BindRequest(std::move(request)); |
} |
@@ -70,6 +76,9 @@ namespace mojo_interface_factory { |
void RegisterInterfaces( |
service_manager::InterfaceRegistry* registry, |
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) { |
+ registry->AddInterface( |
+ base::Bind(&BindAcceleratorControllerRequestOnMainThread), |
+ main_thread_task_runner); |
registry->AddInterface(base::Bind(&BindCastConfigOnMainThread), |
main_thread_task_runner); |
registry->AddInterface( |