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

Side by Side Diff: chrome/browser/signin/fake_profile_oauth2_token_service.cc

Issue 681483003: Fix a typo in an OAuth2TokenService classname (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "components/signin/core/browser/signin_account_id_helper.h" 8 #include "components/signin/core/browser/signin_account_id_helper.h"
9 9
10 FakeProfileOAuth2TokenService::PendingRequest::PendingRequest() { 10 FakeProfileOAuth2TokenService::PendingRequest::PendingRequest() {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 void FakeProfileOAuth2TokenService::IssueRefreshToken( 52 void FakeProfileOAuth2TokenService::IssueRefreshToken(
53 const std::string& token) { 53 const std::string& token) {
54 IssueRefreshTokenForUser("account_id", token); 54 IssueRefreshTokenForUser("account_id", token);
55 } 55 }
56 56
57 void FakeProfileOAuth2TokenService::IssueRefreshTokenForUser( 57 void FakeProfileOAuth2TokenService::IssueRefreshTokenForUser(
58 const std::string& account_id, 58 const std::string& account_id,
59 const std::string& token) { 59 const std::string& token) {
60 ScopedBacthChange batch(this); 60 ScopedBatchChange batch(this);
61 if (token.empty()) { 61 if (token.empty()) {
62 refresh_tokens_.erase(account_id); 62 refresh_tokens_.erase(account_id);
63 FireRefreshTokenRevoked(account_id); 63 FireRefreshTokenRevoked(account_id);
64 } else { 64 } else {
65 refresh_tokens_[account_id] = token; 65 refresh_tokens_[account_id] = token;
66 FireRefreshTokenAvailable(account_id); 66 FireRefreshTokenAvailable(account_id);
67 // TODO(atwilson): Maybe we should also call FireRefreshTokensLoaded() here? 67 // TODO(atwilson): Maybe we should also call FireRefreshTokensLoaded() here?
68 } 68 }
69 } 69 }
70 70
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 return NULL; 211 return NULL;
212 } 212 }
213 213
214 void FakeProfileOAuth2TokenService::InvalidateOAuth2Token( 214 void FakeProfileOAuth2TokenService::InvalidateOAuth2Token(
215 const std::string& account_id, 215 const std::string& account_id,
216 const std::string& client_id, 216 const std::string& client_id,
217 const ScopeSet& scopes, 217 const ScopeSet& scopes,
218 const std::string& access_token) { 218 const std::string& access_token) {
219 // Do nothing, as we don't have a cache from which to remove the token. 219 // Do nothing, as we don't have a cache from which to remove the token.
220 } 220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698