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

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

Issue 11415015: Remove use of index in wallpaper picker code and some refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser tests Created 8 years, 1 month 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/shell.cc ('k') | ash/shell_factory.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 872f352d5763ce9036b6fcef0217279a749f0afb..a3f5c8d404e857efe75ed982bc2148d0a61e8b49 100644
--- a/ash/shell/content_client/shell_browser_main_parts.cc
+++ b/ash/shell/content_client/shell_browser_main_parts.cc
@@ -102,7 +102,12 @@ void ShellBrowserMainParts::PreMainMessageLoopRun() {
ash::shell::InitWindowTypeLauncher();
- Shell::GetInstance()->desktop_background_controller()->SetDefaultWallpaper(0);
+ DesktopBackgroundController* controller =
+ Shell::GetInstance()->desktop_background_controller();
+ if (controller->GetAppropriateResolution() == WALLPAPER_RESOLUTION_LARGE)
+ controller->SetDefaultWallpaper(kDefaultLargeWallpaper);
+ else
+ controller->SetDefaultWallpaper(kDefaultSmallWallpaper);
ash::Shell::GetPrimaryRootWindow()->ShowRootWindow();
}
« no previous file with comments | « ash/shell.cc ('k') | ash/shell_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698