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

Unified Diff: chrome/browser/chromeos/login/screens/user_image_screen.cc

Issue 2666893002: Delete "Google Profile photo" for the Active Directory (Closed)
Patch Set: Comment Created 3 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
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() {

Powered by Google App Engine
This is Rietveld 408576698