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

Unified Diff: chrome/browser/signin/oauth2_token_service.cc

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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: chrome/browser/signin/oauth2_token_service.cc
diff --git a/chrome/browser/signin/oauth2_token_service.cc b/chrome/browser/signin/oauth2_token_service.cc
index abddb4e8d46ba4b2febc36111848eddc313f8858..19772ca0800a37bceb6a1466b43e694a34564712 100644
--- a/chrome/browser/signin/oauth2_token_service.cc
+++ b/chrome/browser/signin/oauth2_token_service.cc
@@ -440,7 +440,7 @@ bool OAuth2TokenService::RemoveCacheEntry(
const std::string& token_to_remove) {
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
TokenCache::iterator token_iterator = token_cache_.find(scopes);
- if (token_iterator == token_cache_.end() &&
+ if (token_iterator != token_cache_.end() &&
tim (not reviewing) 2013/05/23 19:03:41 I guess this wasn't being used very commonly?
Andrew T Wilson (Slow) 2013/05/24 14:10:15 I guess not. It's mostly an optimization anyway (i
pavely 2013/05/30 07:42:12 If server returns AUTH_ERROR before token expires
Andrew T Wilson (Slow) 2013/05/31 12:57:28 Yes. Since every token in OAuth2TokenService has a
token_iterator->second.access_token == token_to_remove) {
token_cache_.erase(token_iterator);
return true;
« no previous file with comments | « no previous file | chrome/browser/signin/signin_tracker_unittest.cc » ('j') | chrome/browser/sync/profile_sync_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698