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

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

Issue 10825318: [cros] Choose initial user avatar from new stock images only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 6cb84438c1379afd1d6ac41e388952f60a94aa15..6f2251fa7bcf316ceeb5d02b8bf58c01166f57c8 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.cc
+++ b/chrome/browser/chromeos/login/user_manager_impl.cc
@@ -904,7 +904,8 @@ void UserManagerImpl::NotifyOnLogin() {
void UserManagerImpl::SetInitialUserImage(const std::string& username) {
// Choose a random default image.
- int image_id = base::RandInt(0, kDefaultImagesCount - 1);
+ int image_id =
+ base::RandInt(kFirstDefaultImageIndex, kDefaultImagesCount - 1);
SaveUserDefaultImageIndex(username, image_id);
}
« 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