summaryrefslogtreecommitdiffstats
path: root/extensions/browser/updater
diff options
context:
space:
mode:
authorgogerald <gogerald@chromium.org>2015-07-02 13:03:47 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-02 20:04:23 +0000
commit63376b55f05201ea493fe6c26d3b9a8f26bc2f16 (patch)
tree97bbc087ac0b9cb8c7ba960ef749124180d9a67b /extensions/browser/updater
parent9997795a0ef93d1a1bab867ae2f1a21d3d55361c (diff)
downloadchromium_src-63376b55f05201ea493fe6c26d3b9a8f26bc2f16.zip
chromium_src-63376b55f05201ea493fe6c26d3b9a8f26bc2f16.tar.gz
chromium_src-63376b55f05201ea493fe6c26d3b9a8f26bc2f16.tar.bz2
Refactor AO2TS to make it easier to componentize
This cl is dedicated to refactor token service to make it easier to componentize. It introduces a new class OAuth2TokenServiceDelegate for each platform to implement it. OAuth2TokenService and its subclasses will call into platform specific delegate and the user can get that delegate through public interface GetDelegate() of OAuth2TokenService. BUG=490882 Review URL: https://codereview.chromium.org/1143323005 Cr-Commit-Position: refs/heads/master@{#337248}
Diffstat (limited to 'extensions/browser/updater')
-rw-r--r--extensions/browser/updater/extension_downloader.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/browser/updater/extension_downloader.cc b/extensions/browser/updater/extension_downloader.cc
index a796149..a038ebb 100644
--- a/extensions/browser/updater/extension_downloader.cc
+++ b/extensions/browser/updater/extension_downloader.cc
@@ -915,9 +915,8 @@ bool ExtensionDownloader::IterateFetchCredentialsAfterFailure(
DCHECK(identity_provider_.get());
OAuth2TokenService::ScopeSet webstore_scopes;
webstore_scopes.insert(kWebstoreOAuth2Scope);
- identity_provider_->GetTokenService()->InvalidateToken(
- identity_provider_->GetActiveAccountId(),
- webstore_scopes,
+ identity_provider_->GetTokenService()->InvalidateAccessToken(
+ identity_provider_->GetActiveAccountId(), webstore_scopes,
access_token_);
access_token_.clear();
return true;