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

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

Issue 1094103005: Profile chooser on mac was passing wrong value to signin error controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ASI Created 5 years, 8 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 a2ea2902a2a67d3bd583eb76ec3b8349bcb19f0c..49976438e53095daa4f603dafbec188a70571904 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -128,15 +128,6 @@ std::string GetAuthErrorAccountId(Profile* profile) {
return error->error_account_id();
}
-std::string GetAuthErrorUsername(Profile* profile) {
- const SigninErrorController* error =
- profiles::GetSigninErrorController(profile);
- if (!error)
- return std::string();
-
- return error->error_username();
-}
-
// BackgroundColorHoverButton -------------------------------------------------
// A custom button that allows for setting a background color when hovered over.
@@ -1489,7 +1480,7 @@ views::View* ProfileChooserView::CreateGaiaSigninView() {
case profiles::BUBBLE_VIEW_MODE_GAIA_REAUTH: {
DCHECK(HasAuthError(browser_->profile()));
url = signin::GetReauthURL(browser_->profile(),
- GetAuthErrorUsername(browser_->profile()));
+ GetAuthErrorAccountId(browser_->profile()));
message_id = IDS_PROFILES_GAIA_REAUTH_TITLE;
break;
}

Powered by Google App Engine
This is Rietveld 408576698