Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc

Issue 2617883002: Add a new BindInterface() method to Connector. (Closed)
Patch Set: . Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
diff --git a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
index b1dae54cc69a9d94c5ebfa396eda40538af5967e..479ba1c9e00f54aae38ac8c67d101e1a70a8736a 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
@@ -204,8 +204,8 @@ void SetWallpaper(const gfx::ImageSkia& image,
return;
ash::mojom::WallpaperControllerPtr wallpaper_controller;
- connector->ConnectToInterface(ash_util::GetAshServiceName(),
- &wallpaper_controller);
+ connector->BindInterface(ash_util::GetAshServiceName(),
+ &wallpaper_controller);
// TODO(crbug.com/655875): Optimize ash wallpaper transport; avoid sending
// large bitmaps over Mojo; use shared memory like BitmapUploader, etc.
wallpaper_controller->SetWallpaper(*image.bitmap(), layout);
@@ -887,8 +887,8 @@ WallpaperManager::WallpaperManager()
if (connection && connection->GetConnector()) {
// Connect to the wallpaper controller interface in the ash service.
ash::mojom::WallpaperControllerPtr wallpaper_controller_ptr;
- connection->GetConnector()->ConnectToInterface(
- ash_util::GetAshServiceName(), &wallpaper_controller_ptr);
+ connection->GetConnector()->BindInterface(ash_util::GetAshServiceName(),
+ &wallpaper_controller_ptr);
// Register this object as the wallpaper picker.
wallpaper_controller_ptr->SetWallpaperPicker(
binding_.CreateInterfacePtrAndBind());
« no previous file with comments | « chrome/browser/chromeos/locale_change_guard.cc ('k') | chrome/browser/chromeos/settings/shutdown_policy_forwarder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698