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

Unified Diff: ash/shell.cc

Issue 9764012: Restore to user selected wallpaper after browser crash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 395d2bf6a3582c00dc5f3b8be6ad74899a6472a1..669e04fd3a6d69b01a8716bad763c6265889ba00 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -598,6 +598,10 @@ void Shell::Init() {
// This controller needs to be set before SetupManagedWindowMode.
desktop_background_controller_.reset(new DesktopBackgroundController);
+ if (delegate_.get())
+ user_wallpaper_delegate_.reset(delegate_->CreateUserWallpaperDelegate());
+ desktop_background_controller_->SetDesktopBackgroundImageMode(
+ GetWallpaper(user_wallpaper_delegate_->GetUserWallpaperIndex()));
flackr 2012/03/21 17:44:20 Seems this would be equivalent to: desktop_backgro
bshe 2012/03/22 02:16:03 Yes and no. Ideally, they should be equivalent. Bu
InitLayoutManagers();
@@ -752,9 +756,6 @@ void Shell::InitLayoutManagers() {
// Ensure launcher is visible.
launcher_->widget()->Show();
-
- // Create the desktop background image.
- desktop_background_controller_->SetDefaultDesktopBackgroundImage();
}
void Shell::DisableWorkspaceGridLayout() {

Powered by Google App Engine
This is Rietveld 408576698