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

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

Issue 136763003: Fix User->image() without ImageSkia representation after login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_image_manager_impl.cc
diff --git a/chrome/browser/chromeos/login/user_image_manager_impl.cc b/chrome/browser/chromeos/login/user_image_manager_impl.cc
index f03e5ec15c24a0cc55a5016c6cf067be5ef46530..2ace8fd4ea4c6bd006c603235202b2e988851ba9 100644
--- a/chrome/browser/chromeos/login/user_image_manager_impl.cc
+++ b/chrome/browser/chromeos/login/user_image_manager_impl.cc
@@ -541,9 +541,10 @@ void UserImageManagerImpl::LoadUserImage() {
image_properties->GetString(kImagePathNodeName, &image_path);
user->SetImageURL(image_url);
+ user->SetStubImage(image_index, true);
DCHECK(!image_path.empty() || image_index == User::kProfileImageIndex);
if (image_path.empty() || needs_migration) {
- // Use a stub image (gray avatar) if either of the following is true:
+ // Return if either of the following is true:
// * The profile image is to be used but has not been downloaded yet. The
// profile image will be downloaded after login.
// * The image needs migration. Migration will be performed after login.
« 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