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

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

Issue 63423003: Set ENABLE_MANAGED_USERS #ifdef on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/fake_profile_oauth2_token_service.h ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698