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

Unified Diff: ash/shell/content_client/shell_browser_main_parts.cc

Issue 215293003: Move all wallpaper file loading and decoding from DesktopBackgroundController to WallpaperManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call WM::SetDefaultWallpaper() from ShellBrowserMainParts::PreMainMessageLoopRun(). Created 6 years, 8 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
« no previous file with comments | « ash/desktop_background/wallpaper_resizer.cc ('k') | ash/test/ash_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/content_client/shell_browser_main_parts.cc
diff --git a/ash/shell/content_client/shell_browser_main_parts.cc b/ash/shell/content_client/shell_browser_main_parts.cc
index 7a745c6b833e3f92e756f3d833736edaacf4bde7..02017e62d673f71e97f191ce7ea75e31104e6b73 100644
--- a/ash/shell/content_client/shell_browser_main_parts.cc
+++ b/ash/shell/content_client/shell_browser_main_parts.cc
@@ -37,6 +37,7 @@
#endif
#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/login/wallpaper_manager.h"
#include "chromeos/audio/cras_audio_handler.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#endif
@@ -134,8 +135,10 @@ void ShellBrowserMainParts::PreMainMessageLoopRun() {
ash::shell::InitWindowTypeLauncher();
- Shell::GetInstance()->desktop_background_controller()->SetDefaultWallpaper(
Alexander Alekseev 2014/04/09 14:37:38 Scott, can I completely remove this call? (you've
- false /* is_guest */);
+#if defined(OS_CHROMEOS)
+ chromeos::WallpaperManager::Get()->
+ SetDefaultWallpaperDelayed(chromeos::UserManager::kSignInUser);
Alexander Alekseev 2014/04/08 16:34:20 This breaks dependencies. Should I remove this cal
sky 2014/04/09 16:49:36 If unsure, try it out. We need a wallpaper to work
+#endif
ash::Shell::GetPrimaryRootWindow()->GetHost()->Show();
}
« no previous file with comments | « ash/desktop_background/wallpaper_resizer.cc ('k') | ash/test/ash_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698