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

Unified Diff: chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.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_policy_browsertest.cc
diff --git a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.cc b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.cc
index 17b8e64b13476d09b29e6b1b80abfca5f87b1e5f..6e9746fb61619a8f90c4ad199a3121fe5d3df83a 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.cc
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_policy_browsertest.cc
@@ -10,7 +10,7 @@
#include "ash/common/wallpaper/wallpaper_controller.h"
#include "ash/common/wallpaper/wallpaper_controller_observer.h"
-#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
@@ -123,7 +123,7 @@ SkColor ComputeAverageColor(const SkBitmap& bitmap) {
// Obtain wallpaper image and return its average ARGB color.
SkColor GetAverageWallpaperColor() {
const gfx::ImageSkia image =
- ash::WmShell::Get()->wallpaper_controller()->GetWallpaper();
+ ash::Shell::GetInstance()->wallpaper_controller()->GetWallpaper();
const gfx::ImageSkiaRep& representation = image.GetRepresentation(1.);
if (representation.is_null()) {
@@ -219,7 +219,7 @@ class WallpaperManagerPolicyTest : public LoginManagerTest,
void SetUpOnMainThread() override {
LoginManagerTest::SetUpOnMainThread();
- ash::WmShell::Get()->wallpaper_controller()->AddObserver(this);
+ ash::Shell::GetInstance()->wallpaper_controller()->AddObserver(this);
// Set up policy signing.
user_policy_builders_[0] = GetUserPolicyBuilder(testUsers_[0]);
@@ -227,7 +227,7 @@ class WallpaperManagerPolicyTest : public LoginManagerTest,
}
void TearDownOnMainThread() override {
- ash::WmShell::Get()->wallpaper_controller()->RemoveObserver(this);
+ ash::Shell::GetInstance()->wallpaper_controller()->RemoveObserver(this);
LoginManagerTest::TearDownOnMainThread();
}

Powered by Google App Engine
This is Rietveld 408576698