Index: chrome/browser/chromeos/login/screens/user_image_screen.cc |
diff --git a/chrome/browser/chromeos/login/screens/user_image_screen.cc b/chrome/browser/chromeos/login/screens/user_image_screen.cc |
index 99352fee21eba417d16f0e23d23b1389b73208fe..73e22029e5f41b17836e0ce28f60344d4d0f0a5f 100644 |
--- a/chrome/browser/chromeos/login/screens/user_image_screen.cc |
+++ b/chrome/browser/chromeos/login/screens/user_image_screen.cc |
@@ -280,8 +280,14 @@ void UserImageScreen::Show() { |
kContextKeySelectedImageURL, |
default_user_image::GetDefaultImageUrl(selected_image_)); |
- // Start fetching the profile image. |
- GetUserImageManager()->DownloadProfileImage(kProfileDownloadReason); |
+ const user_manager::User* user = GetUser(); |
+ // Fetch profile image for GAIA accounts. |
+ if (user && user->HasGaiaAccount()) { |
+ GetContextEditor().SetBoolean(kContextKeyHasGaiaAccount, true); |
+ GetUserImageManager()->DownloadProfileImage(kProfileDownloadReason); |
+ } else { |
+ GetContextEditor().SetBoolean(kContextKeyHasGaiaAccount, false); |
+ } |
} |
void UserImageScreen::Hide() { |