| Index: ash/common/mojo_interface_factory.cc
|
| diff --git a/ash/common/mojo_interface_factory.cc b/ash/common/mojo_interface_factory.cc
|
| index 22c02c4644f2393d08a6bd76dc4c57f5c12df686..e359a741b1a700e5b55404310c33f86b170db1d3 100644
|
| --- a/ash/common/mojo_interface_factory.cc
|
| +++ b/ash/common/mojo_interface_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <utility>
|
|
|
| +#include "ash/common/cast_config_controller.h"
|
| #include "ash/common/shelf/shelf_controller.h"
|
| #include "ash/common/shutdown_controller.h"
|
| #include "ash/common/system/locale/locale_notification_controller.h"
|
| @@ -24,6 +25,10 @@ namespace ash {
|
|
|
| namespace {
|
|
|
| +void BindCastConfigOnMainThread(mojom::CastConfigRequest request) {
|
| + WmShell::Get()->cast_config()->BindRequest(std::move(request));
|
| +}
|
| +
|
| void BindLocaleNotificationControllerOnMainThread(
|
| mojom::LocaleNotificationControllerRequest request) {
|
| WmShell::Get()->locale_notification_controller()->BindRequest(
|
| @@ -65,6 +70,8 @@ namespace mojo_interface_factory {
|
| void RegisterInterfaces(
|
| service_manager::InterfaceRegistry* registry,
|
| scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
|
| + registry->AddInterface(base::Bind(&BindCastConfigOnMainThread),
|
| + main_thread_task_runner);
|
| registry->AddInterface(
|
| base::Bind(&BindLocaleNotificationControllerOnMainThread),
|
| main_thread_task_runner);
|
|
|