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..8eb2892a5483e2e9935d614aa43a144ef6d7f903 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_manager.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<ash::sysui::mojom::WallpaperManager>(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, |
+ ash::sysui::mojom::WallpaperManagerRequest request) { |
+ if (!wallpaper_manager_) |
+ wallpaper_manager_.reset(new ChromeWallpaperManager); |
+ wallpaper_manager_->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); |