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

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

Issue 2738133003: Promotes a handful of members from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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 78bbda38ace4ec56e25f52f8a0b76e666f62a3f1..823b4604992f3093eb10fae332db6948a66b4289 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
@@ -8,8 +8,8 @@
#include "ash/common/ash_constants.h"
#include "ash/common/wallpaper/wallpaper_controller.h"
-#include "ash/common/wm_shell.h"
#include "ash/public/interfaces/constants.mojom.h"
+#include "ash/shell.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -210,11 +210,11 @@ void SetWallpaper(const gfx::ImageSkia& image,
// 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);
- } else if (ash::WmShell::HasInstance()) {
+ } else if (ash::Shell::HasInstance()) {
// Note: Wallpaper setting is skipped in unit tests without shell instances.
// In classic ash, interact with the WallpaperController class directly.
- ash::WmShell::Get()->wallpaper_controller()->SetWallpaperImage(image,
- layout);
+ ash::Shell::GetInstance()->wallpaper_controller()->SetWallpaperImage(
+ image, layout);
}
}
@@ -473,7 +473,7 @@ void WallpaperManager::InitializeWallpaper() {
// Zero delays is also set in autotests.
if (WizardController::IsZeroDelayEnabled()) {
// Ensure tests have some sort of wallpaper.
- ash::WmShell::Get()->wallpaper_controller()->CreateEmptyWallpaper();
+ ash::Shell::GetInstance()->wallpaper_controller()->CreateEmptyWallpaper();
return;
}
@@ -1369,7 +1369,7 @@ void WallpaperManager::SetDefaultWallpaperPath(
default_large_wallpaper_file_ = default_large_wallpaper_file;
ash::WallpaperController* controller =
- ash::WmShell::Get()->wallpaper_controller();
+ ash::Shell::GetInstance()->wallpaper_controller();
// |need_update_screen| is true if the previous default wallpaper is visible
// now, so we need to update wallpaper on the screen.

Powered by Google App Engine
This is Rietveld 408576698