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

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

Issue 22581003: Handling of multiple concurrent requests from different clients in OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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.cc
diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
index bb544169328e023931ff5ae8e20a1ca9187bfb94..91d39418bd45eed2856b8bd468bdb31c6b266b0c 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -319,8 +319,11 @@ scoped_ptr<OAuth2TokenService::Request> FakeOAuth2TokenService::StartRequest(
OAuth2TokenService::Consumer* consumer) {
// Ensure token in question is cached and never expires. Request will succeed
// without network IO.
- RegisterCacheEntry(GetRefreshToken(), scopes, "access_token",
- base::Time::Max());
+ RegisterCacheEntry("test_client_id",
+ GetRefreshToken(),
+ scopes,
+ "access_token",
+ base::Time::Max());
return ProfileOAuth2TokenService::StartRequest(scopes, consumer);
}

Powered by Google App Engine
This is Rietveld 408576698