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

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

Issue 369353002: Create a FakeAccountReconcilor that doesn't perform network requests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/account_reconcilor.h
diff --git a/components/signin/core/browser/account_reconcilor.h b/components/signin/core/browser/account_reconcilor.h
index a4521069e43c840ae7cd8234839267047a2106a8..da62b2c43fae77c4bc325356a724ce98ea69ec03 100644
--- a/components/signin/core/browser/account_reconcilor.h
+++ b/components/signin/core/browser/account_reconcilor.h
@@ -61,6 +61,16 @@ class AccountReconcilor : public KeyedService,
ProfileOAuth2TokenService* token_service() { return token_service_; }
SigninClient* client() { return client_; }
+ protected:
+ // Used during GetAccountsFromCookie.
+ // Stores a callback for the next action to perform.
+ typedef base::Callback<
+ void(const GoogleServiceAuthError& error,
+ const std::vector<std::pair<std::string, bool> >&)>
+ GetAccountsFromCookieCallback;
+
+ virtual void GetAccountsFromCookie(GetAccountsFromCookieCallback callback);
+
private:
// An std::set<> for use with email addresses that uses
// gaia::CanonicalizeEmail() during comparisons.
@@ -99,12 +109,6 @@ class AccountReconcilor : public KeyedService,
return invalid_chrome_accounts_;
}
- // Used during GetAccountsFromCookie.
- // Stores a callback for the next action to perform.
- typedef base::Callback<
- void(const GoogleServiceAuthError& error,
- const std::vector<std::pair<std::string, bool> >&)>
- GetAccountsFromCookieCallback;
friend class AccountReconcilorTest;
FRIEND_TEST_ALL_PREFIXES(AccountReconcilorTest, SigninManagerRegistration);
@@ -173,7 +177,6 @@ class AccountReconcilor : public KeyedService,
void HandleRefreshTokenFetched(const std::string& account_id,
const std::string& refresh_token);
- void GetAccountsFromCookie(GetAccountsFromCookieCallback callback);
void ContinueReconcileActionAfterGetGaiaAccounts(
const GoogleServiceAuthError& error,
const std::vector<std::pair<std::string, bool> >& accounts);
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698