Commit 914ea755 authored by noms's avatar noms Committed by Commit bot

Cleanup: Add a NOTREACHED() when selecting a profile photo.

BUG=404241

Review URL: https://codereview.chromium.org/638063002

Cr-Commit-Position: refs/heads/master@{#299108}
parent c639ead1
......@@ -362,6 +362,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment