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

Unified Diff: components/signin/core/browser/fake_auth_status_provider.cc

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/fake_auth_status_provider.cc
diff --git a/components/signin/core/browser/fake_auth_status_provider.cc b/components/signin/core/browser/fake_auth_status_provider.cc
index 77e10db9d92a691b11a5be45b5771a5f5f43bb20..8da1ef4f12ffadbe718060dd01fcccdc8a6fd0c1 100644
--- a/components/signin/core/browser/fake_auth_status_provider.cc
+++ b/components/signin/core/browser/fake_auth_status_provider.cc
@@ -18,13 +18,19 @@ std::string FakeAuthStatusProvider::GetAccountId() const {
return account_id_;
}
+std::string FakeAuthStatusProvider::GetUsername() const {
+ return username_;
+}
+
GoogleServiceAuthError FakeAuthStatusProvider::GetAuthStatus() const {
return auth_error_;
}
void FakeAuthStatusProvider::SetAuthError(const std::string& account_id,
+ const std::string& username,
const GoogleServiceAuthError& error) {
account_id_ = account_id;
+ username_ = username;
auth_error_ = error;
error_provider_->AuthStatusChanged();
}

Powered by Google App Engine
This is Rietveld 408576698