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

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 208273005: If customization includes default wallpaper, download and apply it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Start customization manifest fetch on EULA accepted. Never re-fetch wallpaper. Created 6 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/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index b425e44f02d1535bad2dff79e9b7c9f9f85c57f5..701936f90821d124c1ba09093ab59af89e0394ba 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -31,6 +31,7 @@
#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/browser/chromeos/display/display_configuration_observer.h"
#include "chrome/browser/chromeos/login/user_manager.h"
+#include "chrome/browser/chromeos/login/wallpaper_manager.h"
#endif
// static
@@ -153,3 +154,33 @@ keyboard::KeyboardControllerProxy*
ChromeShellDelegate::CreateKeyboardControllerProxy() {
return new AshKeyboardControllerProxy();
}
+
+bool ChromeShellDelegate::ShouldUseCustomizedDefaultWallpaper() const {
+#if defined(OS_CHROMEOS)
+ return chromeos::WallpaperManager::ShouldUseCustomizedDefaultWallpaper();
+#else
+ return false;
+#endif
+}
+
+base::FilePath
+ChromeShellDelegate::GetCustomizedWallpaperDefaultRescaledSmallFileName()
+ const {
+#if defined(OS_CHROMEOS)
+ return chromeos::WallpaperManager::
+ GetCustomizedWallpaperDefaultRescaledSmallFileName();
+#else
+ return base::FilePath();
+#endif
+}
+
+base::FilePath
+ChromeShellDelegate::GetCustomizedWallpaperDefaultRescaledLargeFileName()
+ const {
+#if defined(OS_CHROMEOS)
+ return chromeos::WallpaperManager::
+ GetCustomizedWallpaperDefaultRescaledLargeFileName();
+#else
+ return base::FilePath();
+#endif
+}

Powered by Google App Engine
This is Rietveld 408576698