| 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..c6ed5283aabcfde67c5b624cc9dddbc6d20bfb09 100644
|
| --- a/ash/common/mojo_interface_factory.cc
|
| +++ b/ash/common/mojo_interface_factory.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "ash/common/shelf/shelf_controller.h"
|
| #include "ash/common/system/tray/system_tray_controller.h"
|
| +#include "ash/common/wallpaper/wallpaper_controller.h"
|
| #include "ash/common/wm_shell.h"
|
| #include "base/bind.h"
|
| #include "services/shell/public/cpp/interface_registry.h"
|
| @@ -14,8 +15,7 @@ namespace ash {
|
|
|
| namespace {
|
|
|
| -void BindShelfControllerRequestOnMainThread(
|
| - mojom::ShelfControllerRequest request) {
|
| +void BindShelfRequestOnMainThread(mojom::ShelfControllerRequest request) {
|
| WmShell::Get()->shelf_controller()->BindRequest(std::move(request));
|
| }
|
|
|
| @@ -23,6 +23,11 @@ void BindSystemTrayRequestOnMainThread(mojom::SystemTrayRequest request) {
|
| WmShell::Get()->system_tray_controller()->BindRequest(std::move(request));
|
| }
|
|
|
| +void BindWallpaperRequestOnMainThread(
|
| + mojom::WallpaperControllerRequest request) {
|
| + WmShell::Get()->wallpaper_controller()->BindRequest(std::move(request));
|
| +}
|
| +
|
| } // namespace
|
|
|
| namespace mojo_interface_factory {
|
| @@ -30,10 +35,12 @@ namespace mojo_interface_factory {
|
| void RegisterInterfaces(
|
| shell::InterfaceRegistry* registry,
|
| scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
|
| - registry->AddInterface(base::Bind(&BindShelfControllerRequestOnMainThread),
|
| + registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread),
|
| main_thread_task_runner);
|
| registry->AddInterface(base::Bind(&BindSystemTrayRequestOnMainThread),
|
| main_thread_task_runner);
|
| + registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread),
|
| + main_thread_task_runner);
|
| }
|
|
|
| } // namespace mojo_interface_factory
|
|
|