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

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

Issue 2471993002: Remove calls to User::email() from chrome/browser/ui/webui/* (Closed)
Patch Set: Created 4 years, 1 month 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 479a52745f70099a5ed078d5d8ec0cfe30041b71..cbd2f4554d6ce36fc995e92f781752a44ae9c05a 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
@@ -268,7 +268,7 @@ void ChangePictureOptionsHandler::HandlePageHidden(
void ChangePictureOptionsHandler::SendSelectedImage() {
const user_manager::User* user = GetUser();
- DCHECK(!user->email().empty());
+ DCHECK(user->GetAccountId().is_valid());
previous_image_index_ = user->image_index();
switch (previous_image_index_) {

Powered by Google App Engine
This is Rietveld 408576698