summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/extensions/wallpaper_private_api.cc')
-rw-r--r--chrome/browser/chromeos/extensions/wallpaper_private_api.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
index 71eb832..a27d4b4 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -57,9 +57,7 @@ const char kWallpaperManifestBaseURL[] = "https://commondatastorage.googleapis."
bool IsOEMDefaultWallpaper() {
return CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kAshDefaultWallpaperIsOem) ||
- CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kAshOemWallpaperSmall);
+ ash::switches::kAshDefaultWallpaperIsOem);
}
// Saves |data| as |file_name| to directory with |key|. Return false if the
@@ -622,12 +620,8 @@ bool WallpaperPrivateGetThumbnailFunction::RunImpl() {
// TODO(bshe): Small resolution wallpaper is used here as wallpaper
// thumbnail. We should either resize it or include a wallpaper thumbnail in
// addition to large and small wallpaper resolutions.
- thumbnail_path = CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kAshDefaultWallpaperIsOem) ?
- CommandLine::ForCurrentProcess()->GetSwitchValuePath(
- ash::switches::kAshDefaultWallpaperSmall) :
- CommandLine::ForCurrentProcess()->GetSwitchValuePath(
- ash::switches::kAshOemWallpaperSmall);
+ thumbnail_path = CommandLine::ForCurrentProcess()->GetSwitchValuePath(
+ ash::switches::kAshDefaultWallpaperSmall);
}
sequence_token_ = BrowserThread::GetBlockingPool()->