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

Side by Side Diff: components/cryptauth/cryptauth_client_impl.cc

Issue 2502343003: Moved //components/proximity_auth/cryptauth to //components/cryptauth. (Closed)
Patch Set: Fixed proto #includes. Created 4 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 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 "components/proximity_auth/cryptauth/cryptauth_client_impl.h" 5 #include "components/cryptauth/cryptauth_client_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_imp l.h" 12 #include "components/cryptauth/cryptauth_access_token_fetcher_impl.h"
13 #include "components/proximity_auth/cryptauth/switches.h" 13 #include "components/cryptauth/switches.h"
14 14
15 namespace proximity_auth { 15 namespace cryptauth {
16 16
17 namespace { 17 namespace {
18 18
19 // Default URL of Google APIs endpoint hosting CryptAuth. 19 // Default URL of Google APIs endpoint hosting CryptAuth.
20 const char kDefaultCryptAuthHTTPHost[] = "https://www.googleapis.com"; 20 const char kDefaultCryptAuthHTTPHost[] = "https://www.googleapis.com";
21 21
22 // URL subpath hosting the CryptAuth service. 22 // URL subpath hosting the CryptAuth service.
23 const char kCryptAuthPath[] = "cryptauth/v1/"; 23 const char kCryptAuthPath[] = "cryptauth/v1/";
24 24
25 // URL subpaths for each CryptAuth API. 25 // URL subpaths for each CryptAuth API.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 194
195 std::unique_ptr<CryptAuthClient> CryptAuthClientFactoryImpl::CreateInstance() { 195 std::unique_ptr<CryptAuthClient> CryptAuthClientFactoryImpl::CreateInstance() {
196 return base::MakeUnique<CryptAuthClientImpl>( 196 return base::MakeUnique<CryptAuthClientImpl>(
197 base::WrapUnique(new CryptAuthApiCallFlow()), 197 base::WrapUnique(new CryptAuthApiCallFlow()),
198 base::WrapUnique( 198 base::WrapUnique(
199 new CryptAuthAccessTokenFetcherImpl(token_service_, account_id_)), 199 new CryptAuthAccessTokenFetcherImpl(token_service_, account_id_)),
200 url_request_context_, device_classifier_); 200 url_request_context_, device_classifier_);
201 } 201 }
202 202
203 } // proximity_auth 203 } // proximity_auth
OLDNEW
« no previous file with comments | « components/cryptauth/cryptauth_client_impl.h ('k') | components/cryptauth/cryptauth_client_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698