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

Unified Diff: components/signin/core/browser/signin_error_controller.h

Issue 288813003: Add username of account that has an auth error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 6 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: components/signin/core/browser/signin_error_controller.h
diff --git a/components/signin/core/browser/signin_error_controller.h b/components/signin/core/browser/signin_error_controller.h
index 17515fc30cb5103b9f154daac8ae1cdcbd39bc1d..77bd78d3751e8defd4b29beb26f7989669e668a1 100644
--- a/components/signin/core/browser/signin_error_controller.h
+++ b/components/signin/core/browser/signin_error_controller.h
@@ -25,6 +25,9 @@ class SigninErrorController {
// Returns the account id with the status specified by GetAuthStatus().
virtual std::string GetAccountId() const = 0;
+ // Returns the username with the status specified by GetAuthStatus().
+ virtual std::string GetUsername() const = 0;
+
// API invoked by SigninErrorController to get the current auth status of
// the various signed in services.
virtual GoogleServiceAuthError GetAuthStatus() const = 0;
@@ -59,6 +62,7 @@ class SigninErrorController {
void RemoveObserver(Observer* observer);
const std::string& error_account_id() const { return error_account_id_; }
+ const std::string& error_username() const { return error_username_; }
const GoogleServiceAuthError& auth_error() const { return auth_error_; }
private:
@@ -66,6 +70,7 @@ class SigninErrorController {
// The account that generated the last auth error.
std::string error_account_id_;
+ std::string error_username_;
// The auth error detected the last time AuthStatusChanged() was invoked (or
// NONE if AuthStatusChanged() has never been invoked).

Powered by Google App Engine
This is Rietveld 408576698