| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" | 5 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" |
| 6 | 6 |
| 7 FakeProfileOAuth2TokenService::PendingRequest::PendingRequest() { | 7 FakeProfileOAuth2TokenService::PendingRequest::PendingRequest() { |
| 8 } | 8 } |
| 9 | 9 |
| 10 FakeProfileOAuth2TokenService::PendingRequest::~PendingRequest() { | 10 FakeProfileOAuth2TokenService::PendingRequest::~PendingRequest() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 const std::string& client_secret, | 134 const std::string& client_secret, |
| 135 const ScopeSet& scopes) { | 135 const ScopeSet& scopes) { |
| 136 PendingRequest pending_request; | 136 PendingRequest pending_request; |
| 137 pending_request.account_id = account_id; | 137 pending_request.account_id = account_id; |
| 138 pending_request.client_id = client_id; | 138 pending_request.client_id = client_id; |
| 139 pending_request.client_secret = client_secret; | 139 pending_request.client_secret = client_secret; |
| 140 pending_request.scopes = scopes; | 140 pending_request.scopes = scopes; |
| 141 pending_request.request = request->AsWeakPtr(); | 141 pending_request.request = request->AsWeakPtr(); |
| 142 pending_requests_.push_back(pending_request); | 142 pending_requests_.push_back(pending_request); |
| 143 } | 143 } |
| 144 |
| 145 void FakeProfileOAuth2TokenService::InvalidateOAuth2Token( |
| 146 const std::string& account_id, |
| 147 const std::string& client_id, |
| 148 const ScopeSet& scopes, |
| 149 const std::string& access_token) { |
| 150 // Do nothing, as we don't have a cache from which to remove the token. |
| 151 } |
| OLD | NEW |