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

Unified Diff: components/signin/core/browser/fake_auth_status_provider.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/fake_auth_status_provider.h
diff --git a/components/signin/core/browser/fake_auth_status_provider.h b/components/signin/core/browser/fake_auth_status_provider.h
index 91f10240ee600f86d396f254fa14e77801601f86..b35bc6e1f4b177bdd9dec09528423ee99c07b457 100644
--- a/components/signin/core/browser/fake_auth_status_provider.h
+++ b/components/signin/core/browser/fake_auth_status_provider.h
@@ -19,6 +19,7 @@ class FakeAuthStatusProvider
// Sets the auth error that this provider reports to SigninErrorController.
// Also notifies SigninErrorController via AuthStatusChanged().
void SetAuthError(const std::string& account_id,
+ const std::string& username,
const GoogleServiceAuthError& error);
void set_error_without_status_change(const GoogleServiceAuthError& error) {
@@ -27,11 +28,13 @@ class FakeAuthStatusProvider
// AuthStatusProvider implementation.
virtual std::string GetAccountId() const OVERRIDE;
+ virtual std::string GetUsername() const OVERRIDE;
virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE;
private:
SigninErrorController* error_provider_;
std::string account_id_;
+ std::string username_;
GoogleServiceAuthError auth_error_;
};
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler_unittest.cc ('k') | components/signin/core/browser/fake_auth_status_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698