| Index: chrome/browser/chromeos/chrome_interface_factory.cc
|
| diff --git a/chrome/browser/chromeos/chrome_interface_factory.cc b/chrome/browser/chromeos/chrome_interface_factory.cc
|
| index f236cfb651b3eec83381fb6713dfb827def71ac8..c2576f192f74ce79f6b09ddb3b4c44c5318a983f 100644
|
| --- a/chrome/browser/chromeos/chrome_interface_factory.cc
|
| +++ b/chrome/browser/chromeos/chrome_interface_factory.cc
|
| @@ -7,6 +7,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/ui/ash/app_list/app_list_presenter_service.h"
|
| +#include "chrome/browser/ui/ash/chrome_wallpaper_helper.h"
|
| #include "chrome/browser/ui/ash/keyboard_ui_service.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| #include "chrome/browser/ui/browser_finder.h"
|
| @@ -64,6 +65,7 @@ ChromeInterfaceFactory::~ChromeInterfaceFactory() {}
|
| bool ChromeInterfaceFactory::AcceptConnection(shell::Connection* connection) {
|
| connection->AddInterface<keyboard::mojom::Keyboard>(this);
|
| connection->AddInterface<mash::mojom::Launchable>(this);
|
| + connection->AddInterface<mash::mojom::WallpaperHelper>(this);
|
| connection->AddInterface<app_list::mojom::AppListPresenter>(this);
|
| return true;
|
| }
|
| @@ -85,6 +87,14 @@ void ChromeInterfaceFactory::Create(shell::Connection* connection,
|
|
|
| void ChromeInterfaceFactory::Create(
|
| shell::Connection* connection,
|
| + mash::mojom::WallpaperHelperRequest request) {
|
| + if (!wallpaper_helper_)
|
| + wallpaper_helper_.reset(new ChromeWallpaperHelper);
|
| + wallpaper_helper_->ProcessRequest(std::move(request));
|
| +}
|
| +
|
| +void ChromeInterfaceFactory::Create(
|
| + shell::Connection* connection,
|
| mojo::InterfaceRequest<app_list::mojom::AppListPresenter> request) {
|
| if (!app_list_presenter_service_)
|
| app_list_presenter_service_.reset(new AppListPresenterService);
|
|
|