| Index: ash/common/mojo_interface_factory.cc
|
| diff --git a/ash/common/mojo_interface_factory.cc b/ash/common/mojo_interface_factory.cc
|
| index c16d7b4a8a028c82157619f14020fc2598bbb984..27dff18b19d6ffffef026818ede48b31aa4e7614 100644
|
| --- a/ash/common/mojo_interface_factory.cc
|
| +++ b/ash/common/mojo_interface_factory.cc
|
| @@ -4,7 +4,10 @@
|
|
|
| #include "ash/common/mojo_interface_factory.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "ash/common/shelf/shelf_controller.h"
|
| +#include "ash/common/system/locale/locale_notification_controller.h"
|
| #include "ash/common/system/tray/system_tray_controller.h"
|
| #include "ash/common/wm_shell.h"
|
| #include "base/bind.h"
|
| @@ -14,6 +17,12 @@ namespace ash {
|
|
|
| namespace {
|
|
|
| +void BindLocaleNotificationControllerOnMainThread(
|
| + mojom::LocaleNotificationControllerRequest request) {
|
| + WmShell::Get()->locale_notification_controller()->BindRequest(
|
| + std::move(request));
|
| +}
|
| +
|
| void BindShelfControllerRequestOnMainThread(
|
| mojom::ShelfControllerRequest request) {
|
| WmShell::Get()->shelf_controller()->BindRequest(std::move(request));
|
| @@ -30,6 +39,9 @@ namespace mojo_interface_factory {
|
| void RegisterInterfaces(
|
| shell::InterfaceRegistry* registry,
|
| scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
|
| + registry->AddInterface(
|
| + base::Bind(&BindLocaleNotificationControllerOnMainThread),
|
| + main_thread_task_runner);
|
| registry->AddInterface(base::Bind(&BindShelfControllerRequestOnMainThread),
|
| main_thread_task_runner);
|
| registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread),
|
|
|