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

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.cc

Issue 9834077: Save the wallpaper selected for the user if was not set previsouly (first time). (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager_impl.cc
diff --git a/chrome/browser/chromeos/login/user_manager_impl.cc b/chrome/browser/chromeos/login/user_manager_impl.cc
index a5800a51771b635d33e3d4b982e0c2b4a06f7acd..bf365172e4923daf828df612989b3d7d7283aebd 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.cc
+++ b/chrome/browser/chromeos/login/user_manager_impl.cc
@@ -914,8 +914,8 @@ int UserManagerImpl::GetUserWallpaper(const std::string& username) {
const DictionaryValue* user_wallpapers =
local_state->GetDictionary(UserManager::kUserWallpapers);
int index = ash::GetDefaultWallpaperIndex();
- user_wallpapers->GetIntegerWithoutPathExpansion(username,
- &index);
+ if (!user_wallpapers->GetIntegerWithoutPathExpansion(username, &index))
+ SaveWallpaperDefaultIndex(username, index);
return index;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698