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

Side by Side Diff: components/cryptauth/cryptauth_access_token_fetcher_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_access_token_fetcher_imp l.h" 5 #include "components/cryptauth/cryptauth_access_token_fetcher_impl.h"
6 6
7 namespace proximity_auth { 7 namespace cryptauth {
8 8
9 namespace { 9 namespace {
10 10
11 // Returns the set of OAuth2 scopes that CryptAuth uses. 11 // Returns the set of OAuth2 scopes that CryptAuth uses.
12 OAuth2TokenService::ScopeSet GetScopes() { 12 OAuth2TokenService::ScopeSet GetScopes() {
13 OAuth2TokenService::ScopeSet scopes; 13 OAuth2TokenService::ScopeSet scopes;
14 scopes.insert("https://www.googleapis.com/auth/cryptauth"); 14 scopes.insert("https://www.googleapis.com/auth/cryptauth");
15 return scopes; 15 return scopes;
16 } 16 }
17 17
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const base::Time& expiration_time) { 50 const base::Time& expiration_time) {
51 callback_.Run(access_token); 51 callback_.Run(access_token);
52 } 52 }
53 53
54 void CryptAuthAccessTokenFetcherImpl::OnGetTokenFailure( 54 void CryptAuthAccessTokenFetcherImpl::OnGetTokenFailure(
55 const OAuth2TokenService::Request* request, 55 const OAuth2TokenService::Request* request,
56 const GoogleServiceAuthError& error) { 56 const GoogleServiceAuthError& error) {
57 callback_.Run(std::string()); 57 callback_.Run(std::string());
58 } 58 }
59 59
60 } // namespace proximity_auth 60 } // namespace cryptauth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698