| Index: ash/common/mojo_interface_factory.cc
|
| diff --git a/ash/common/mojo_interface_factory.cc b/ash/common/mojo_interface_factory.cc
|
| index 3d46f113e19e3c6376c4842d2fe7b32daec85997..ef0b47f774cee1364c4553741be7a808205622ae 100644
|
| --- a/ash/common/mojo_interface_factory.cc
|
| +++ b/ash/common/mojo_interface_factory.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include "ash/common/accelerators/accelerator_controller.h"
|
| #include "ash/common/cast_config_controller.h"
|
| +#include "ash/common/new_window_controller.h"
|
| #include "ash/common/shelf/shelf_controller.h"
|
| #include "ash/common/shutdown_controller.h"
|
| #include "ash/common/system/locale/locale_notification_controller.h"
|
| @@ -41,6 +42,11 @@ void BindLocaleNotificationControllerOnMainThread(
|
| std::move(request));
|
| }
|
|
|
| +void BindNewWindowControllerRequestOnMainThread(
|
| + mojom::NewWindowControllerRequest request) {
|
| + WmShell::Get()->new_window_controller()->BindRequest(std::move(request));
|
| +}
|
| +
|
| void BindShelfRequestOnMainThread(mojom::ShelfControllerRequest request) {
|
| WmShell::Get()->shelf_controller()->BindRequest(std::move(request));
|
| }
|
| @@ -84,6 +90,9 @@ void RegisterInterfaces(
|
| registry->AddInterface(
|
| base::Bind(&BindLocaleNotificationControllerOnMainThread),
|
| main_thread_task_runner);
|
| + registry->AddInterface(
|
| + base::Bind(&BindNewWindowControllerRequestOnMainThread),
|
| + main_thread_task_runner);
|
| registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread),
|
| main_thread_task_runner);
|
| registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread),
|
|
|