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

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

Issue 2318223003: mash: Migrate wallpaper controllers to ash/common. (Closed)
Patch Set: Fix nit. Created 4 years, 3 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 f36f981f5748ac0c60f5551163ac7e6093addbe7..661d30dbb71bb755a249300b943d939be638dbbd 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
@@ -8,9 +8,9 @@
#include <string>
#include <vector>
-#include "ash/shell.h"
-#include "ash/wallpaper/wallpaper_controller.h"
-#include "ash/wallpaper/wallpaper_controller_observer.h"
+#include "ash/common/wallpaper/wallpaper_controller.h"
+#include "ash/common/wallpaper/wallpaper_controller_observer.h"
+#include "ash/common/wm_shell.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
@@ -115,7 +115,7 @@ SkColor ComputeAverageColor(const SkBitmap& bitmap) {
// Obtain wallpaper image and return its average ARGB color.
SkColor GetAverageWallpaperColor() {
const gfx::ImageSkia image =
- ash::Shell::GetInstance()->wallpaper_controller()->GetWallpaper();
+ ash::WmShell::Get()->wallpaper_controller()->GetWallpaper();
const gfx::ImageSkiaRep& representation = image.GetRepresentation(1.);
if (representation.is_null()) {
@@ -199,7 +199,7 @@ class WallpaperManagerPolicyTest : public LoginManagerTest,
void SetUpOnMainThread() override {
LoginManagerTest::SetUpOnMainThread();
- ash::Shell::GetInstance()->wallpaper_controller()->AddObserver(this);
+ ash::WmShell::Get()->wallpaper_controller()->AddObserver(this);
// Set up policy signing.
user_policy_builders_[0] = GetUserPolicyBuilder(testUsers_[0]);
@@ -207,7 +207,7 @@ class WallpaperManagerPolicyTest : public LoginManagerTest,
}
void TearDownOnMainThread() override {
- ash::Shell::GetInstance()->wallpaper_controller()->RemoveObserver(this);
+ ash::WmShell::Get()->wallpaper_controller()->RemoveObserver(this);
LoginManagerTest::TearDownOnMainThread();
}

Powered by Google App Engine
This is Rietveld 408576698