Index: chrome/browser/ui/webui/options/manage_profile_handler.cc |
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc |
index 4f00931e0496c2672b168de479b847a96c352dc1..55656dd271b2d56e6963e4c085acc40643b1eb76 100644 |
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc |
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc |
@@ -359,6 +359,9 @@ void ManageProfileHandler::SetProfileIconAndName(const base::ListValue* args) { |
pref_service->SetInteger(prefs::kProfileAvatarIndex, new_icon_index); |
pref_service->SetBoolean(prefs::kProfileUsingDefaultAvatar, false); |
pref_service->SetBoolean(prefs::kProfileUsingGAIAAvatar, false); |
+ } else { |
+ // Only default avatars and Gaia account photos are supported. |
+ CHECK(false); |
} |
ProfileMetrics::LogProfileUpdate(profile_file_path); |