OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/supervised_user/legacy/supervised_user_refresh_token_fe
tcher.h" | 5 #include "chrome/browser/supervised_user/legacy/supervised_user_refresh_token_fe
tcher.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 SupervisedUserRefreshTokenFetcher::Create( | 293 SupervisedUserRefreshTokenFetcher::Create( |
294 OAuth2TokenService* oauth2_token_service, | 294 OAuth2TokenService* oauth2_token_service, |
295 const std::string& account_id, | 295 const std::string& account_id, |
296 const std::string& device_id, | 296 const std::string& device_id, |
297 URLRequestContextGetter* context) { | 297 URLRequestContextGetter* context) { |
298 scoped_ptr<SupervisedUserRefreshTokenFetcher> fetcher( | 298 scoped_ptr<SupervisedUserRefreshTokenFetcher> fetcher( |
299 new SupervisedUserRefreshTokenFetcherImpl(oauth2_token_service, | 299 new SupervisedUserRefreshTokenFetcherImpl(oauth2_token_service, |
300 account_id, | 300 account_id, |
301 device_id, | 301 device_id, |
302 context)); | 302 context)); |
303 return fetcher.Pass(); | 303 return fetcher; |
304 } | 304 } |
305 | 305 |
306 SupervisedUserRefreshTokenFetcher::~SupervisedUserRefreshTokenFetcher() {} | 306 SupervisedUserRefreshTokenFetcher::~SupervisedUserRefreshTokenFetcher() {} |
OLD | NEW |