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

Unified Diff: chrome/browser/ui/webui/settings/chromeos/change_picture_handler.cc

Issue 1585963004: Settings People Revamp: Add tests for ChromeOS Change Picture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/ui/webui/settings/chromeos/change_picture_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chromeos/change_picture_handler.cc b/chrome/browser/ui/webui/settings/chromeos/change_picture_handler.cc
index 8a523a347cf2d54cf21ecf68ebdab91579552c68..b902894c5c6e71b965a81e7b00200810bc33a0d4 100644
--- a/chrome/browser/ui/webui/settings/chromeos/change_picture_handler.cc
+++ b/chrome/browser/ui/webui/settings/chromeos/change_picture_handler.cc
@@ -276,7 +276,7 @@ void ChangePictureHandler::HandleSelectImage(const base::ListValue* args) {
NOTREACHED();
return;
}
- DCHECK(!image_url.empty());
+ // |image_url| may be empty unless |image_type| is "default".
DCHECK(!image_type.empty());
UserImageManager* user_image_manager =

Powered by Google App Engine
This is Rietveld 408576698