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

Unified Diff: chrome/browser/signin/profile_oauth2_token_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: fixes for bustes tests 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/signin/profile_oauth2_token_service.cc
diff --git a/chrome/browser/signin/profile_oauth2_token_service.cc b/chrome/browser/signin/profile_oauth2_token_service.cc
index 7dbab236cfb034afa8c4b9f681316d10b3aab19a..fff505d64bb8e21fb747670f1f40848898825897 100644
--- a/chrome/browser/signin/profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service.cc
@@ -168,13 +168,15 @@ GoogleServiceAuthError ProfileOAuth2TokenService::GetAuthStatus() const {
}
void ProfileOAuth2TokenService::RegisterCacheEntry(
+ const std::string& client_id,
const std::string& refresh_token,
const ScopeSet& scopes,
const std::string& access_token,
const base::Time& expiration_date) {
if (ShouldCacheForRefreshToken(TokenServiceFactory::GetForProfile(profile_),
refresh_token)) {
- OAuth2TokenService::RegisterCacheEntry(refresh_token,
+ OAuth2TokenService::RegisterCacheEntry(client_id,
+ refresh_token,
scopes,
access_token,
expiration_date);
« no previous file with comments | « chrome/browser/signin/profile_oauth2_token_service.h ('k') | chrome/browser/sync/test_profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698