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

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: Please review this patch 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
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..70fd8a73dba251296546e09d38876465acffef03 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() == LARGE)
+ controller->SetDefaultWallpaper(kDefaultLargeWallpaper);
+ else
+ controller->SetDefaultWallpaper(kDefaultSmallWallpaper);
ash::Shell::GetPrimaryRootWindow()->ShowRootWindow();
}

Powered by Google App Engine
This is Rietveld 408576698