diff options
author | gogerald <gogerald@chromium.org> | 2015-07-02 13:03:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-02 20:04:23 +0000 |
commit | 63376b55f05201ea493fe6c26d3b9a8f26bc2f16 (patch) | |
tree | 97bbc087ac0b9cb8c7ba960ef749124180d9a67b /components/history | |
parent | 9997795a0ef93d1a1bab867ae2f1a21d3d55361c (diff) | |
download | chromium_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 'components/history')
-rw-r--r-- | components/history/core/browser/web_history_service.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/history/core/browser/web_history_service.cc b/components/history/core/browser/web_history_service.cc index c36f9fd..7a4e0ed 100644 --- a/components/history/core/browser/web_history_service.cc +++ b/components/history/core/browser/web_history_service.cc @@ -111,9 +111,8 @@ class RequestImpl : public WebHistoryService::Request, if (response_code_ == net::HTTP_UNAUTHORIZED && ++auth_retry_count_ <= 1) { OAuth2TokenService::ScopeSet oauth_scopes; oauth_scopes.insert(kHistoryOAuthScope); - token_service_->InvalidateToken( - signin_manager_->GetAuthenticatedAccountId(), - oauth_scopes, + token_service_->InvalidateAccessToken( + signin_manager_->GetAuthenticatedAccountId(), oauth_scopes, access_token_); access_token_.clear(); |