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

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

Issue 2208613002: Remove MOJO_SHELL_CLIENT define. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot merge Created 4 years, 4 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 764531d695e3973602220b2f18cdf90862f9bb39..44b02c8385a3fe081bc879507df4d73c1bfd4355 100644
--- a/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
+++ b/chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc
@@ -13,6 +13,7 @@
#include "ash/common/ash_switches.h"
#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/shell.h"
+#include "ash/sysui/public/interfaces/wallpaper.mojom.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/files/file_enumerator.h"
@@ -66,10 +67,6 @@
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/skia_util.h"
-#if defined(MOJO_SHELL_CLIENT)
-#include "ash/sysui/public/interfaces/wallpaper.mojom.h"
-#endif
-
using content::BrowserThread;
using wallpaper::WallpaperManagerBase;
using wallpaper::WallpaperInfo;
@@ -180,7 +177,6 @@ void SetKnownUserWallpaperFilesId(
wallpaper_files_id.id());
}
-#if defined(MOJO_SHELL_CLIENT)
ash::sysui::mojom::WallpaperLayout WallpaperLayoutToMojo(
wallpaper::WallpaperLayout layout) {
switch (layout) {
@@ -199,12 +195,10 @@ ash::sysui::mojom::WallpaperLayout WallpaperLayoutToMojo(
NOTREACHED();
return ash::sysui::mojom::WallpaperLayout::CENTER;
}
-#endif
// A helper to set the wallpaper image for Ash and Mash.
void SetWallpaper(const gfx::ImageSkia& image,
wallpaper::WallpaperLayout layout) {
-#if defined(MOJO_SHELL_CLIENT)
if (chrome::IsRunningInMash()) {
shell::Connector* connector =
content::MojoShellConnection::GetForProcess()->GetConnector();
@@ -214,7 +208,6 @@ void SetWallpaper(const gfx::ImageSkia& image,
WallpaperLayoutToMojo(layout));
return;
}
-#endif
// Avoid loading unnecessary wallpapers in tests without a shell instance.
if (ash::Shell::HasInstance()) {
ash::Shell::GetInstance()

Powered by Google App Engine
This is Rietveld 408576698