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

Unified Diff: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc

Issue 8879015: [cros] Profile image no longer selected when user clicks Take Photo/Choose File buttons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/options/chromeos/change_picture_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc
index 630118957b8998aca4cd9de0440d8ab0f91f57a9..dc3b56607db5e2ef99f56ba25396738e25a2df6b 100644
--- a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc
@@ -233,8 +233,7 @@ void ChangePictureOptionsHandler::HandleSelectImage(const ListValue* args) {
NOTREACHED();
return;
}
- if (image_url.empty())
- return;
+ DCHECK(!image_url.empty());
UserManager* user_manager = UserManager::Get();
const User& user = user_manager->logged_in_user();

Powered by Google App Engine
This is Rietveld 408576698