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

Unified Diff: chrome/browser/sync/test_profile_sync_service.h

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a unit test, addressing comments from courage@ Created 7 years, 3 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/sync/test_profile_sync_service.h
diff --git a/chrome/browser/sync/test_profile_sync_service.h b/chrome/browser/sync/test_profile_sync_service.h
index 3eb631787cf9500e5dc5475aa77feb2f2980d567..1471d0190476c057cef8f9d69f7658dbb760ff4a 100644
--- a/chrome/browser/sync/test_profile_sync_service.h
+++ b/chrome/browser/sync/test_profile_sync_service.h
@@ -200,11 +200,19 @@ class TestProfileSyncService : public ProfileSyncService {
class FakeOAuth2TokenService : public ProfileOAuth2TokenService {
public:
virtual scoped_ptr<OAuth2TokenService::Request> StartRequest(
+ const std::string& account_id,
const OAuth2TokenService::ScopeSet& scopes,
OAuth2TokenService::Consumer* consumer) OVERRIDE;
static BrowserContextKeyedService* BuildTokenService(
content::BrowserContext* context);
+
+ protected:
+ virtual void PersistCredentials(const std::string& account_id,
+ const std::string& refresh_token) OVERRIDE;
+
+ virtual void ClearPersistedCredentials(
+ const std::string& account_id) OVERRIDE;
};
#endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698