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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

Issue 1117453002: Add gaia_id to ProfileInfoCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 5 years, 7 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/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index f55258026ec657bf0ba3466211ae3fa8ea3bc099..880cccd69e19eadfbfed252da534d046d3c3144b 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -1206,7 +1206,7 @@ views::View* ProfileChooserView::CreateCurrentProfileView(
const gfx::ImageSkia warning_image = *rb->GetImageNamed(
IDR_ICON_PROFILES_ACCOUNT_BUTTON_ERROR).ToImageSkia();
auth_error_email_button_ =
- new RightAlignedIconLabelButton(this, avatar_item.sync_state);
+ new RightAlignedIconLabelButton(this, avatar_item.username);
auth_error_email_button_->SetElideBehavior(gfx::ELIDE_EMAIL);
auth_error_email_button_->SetImage(
views::LabelButton::STATE_NORMAL, warning_image);
@@ -1222,7 +1222,7 @@ views::View* ProfileChooserView::CreateCurrentProfileView(
} else {
// Add a small padding between the email button and the profile name.
layout->StartRowWithPadding(1, 0, 0, 2);
- views::Label* email_label = new views::Label(avatar_item.sync_state);
+ views::Label* email_label = new views::Label(avatar_item.username);
email_label->SetElideBehavior(gfx::ELIDE_EMAIL);
email_label->SetEnabled(false);
layout->AddView(email_label);

Powered by Google App Engine
This is Rietveld 408576698