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

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

Issue 2863533003: [EasyUnlock] Serialize and store BeaconSeeds along as cryptohome key metadata. (Closed)
Patch Set: comments Created 3 years, 7 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/chrome_proximity_auth_client.h" 5 #include "chrome/browser/signin/chrome_proximity_auth_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 callback.Run(std::string()); 90 callback.Run(std::string());
91 #endif 91 #endif
92 } 92 }
93 93
94 PrefService* ChromeProximityAuthClient::GetPrefService() { 94 PrefService* ChromeProximityAuthClient::GetPrefService() {
95 return profile_->GetPrefs(); 95 return profile_->GetPrefs();
96 } 96 }
97 97
98 std::unique_ptr<cryptauth::SecureMessageDelegate> 98 std::unique_ptr<cryptauth::SecureMessageDelegate>
99 ChromeProximityAuthClient::CreateSecureMessageDelegate() { 99 ChromeProximityAuthClient::CreateSecureMessageDelegate() {
100 return GetCryptAuthService()->CreateSecureMessageDelegate(); 100 // Note: Although CryptAuthService::CreateSecureMessageDelegate() exists, we
101 // don't use it here (as opposed to other methods in this class) because the
102 // CryptAuthService is not available on the ChromeOS login screen.
103 #if defined(OS_CHROMEOS)
104 return base::MakeUnique<chromeos::SecureMessageDelegateChromeOS>();
105 #else
106 return nullptr;
107 #endif
101 } 108 }
102 109
103 std::unique_ptr<cryptauth::CryptAuthClientFactory> 110 std::unique_ptr<cryptauth::CryptAuthClientFactory>
104 ChromeProximityAuthClient::CreateCryptAuthClientFactory() { 111 ChromeProximityAuthClient::CreateCryptAuthClientFactory() {
105 return GetCryptAuthService()->CreateCryptAuthClientFactory(); 112 return GetCryptAuthService()->CreateCryptAuthClientFactory();
106 } 113 }
107 114
108 cryptauth::DeviceClassifier ChromeProximityAuthClient::GetDeviceClassifier() { 115 cryptauth::DeviceClassifier ChromeProximityAuthClient::GetDeviceClassifier() {
109 return GetCryptAuthService()->GetDeviceClassifier(); 116 return GetCryptAuthService()->GetDeviceClassifier();
110 } 117 }
111 118
112 std::string ChromeProximityAuthClient::GetAccountId() { 119 std::string ChromeProximityAuthClient::GetAccountId() {
113 return GetCryptAuthService()->GetAccountId(); 120 return GetCryptAuthService()->GetAccountId();
114 } 121 }
115 122
116 cryptauth::CryptAuthEnrollmentManager* 123 cryptauth::CryptAuthEnrollmentManager*
117 ChromeProximityAuthClient::GetCryptAuthEnrollmentManager() { 124 ChromeProximityAuthClient::GetCryptAuthEnrollmentManager() {
118 return GetCryptAuthService()->GetCryptAuthEnrollmentManager(); 125 return GetCryptAuthService()->GetCryptAuthEnrollmentManager();
119 } 126 }
120 127
121 cryptauth::CryptAuthDeviceManager* 128 cryptauth::CryptAuthDeviceManager*
122 ChromeProximityAuthClient::GetCryptAuthDeviceManager() { 129 ChromeProximityAuthClient::GetCryptAuthDeviceManager() {
123 return GetCryptAuthService()->GetCryptAuthDeviceManager(); 130 return GetCryptAuthService()->GetCryptAuthDeviceManager();
124 } 131 }
125 132
126 cryptauth::CryptAuthService* ChromeProximityAuthClient::GetCryptAuthService() { 133 cryptauth::CryptAuthService* ChromeProximityAuthClient::GetCryptAuthService() {
127 return ChromeCryptAuthServiceFactory::GetInstance()->GetForBrowserContext( 134 return ChromeCryptAuthServiceFactory::GetInstance()->GetForBrowserContext(
128 profile_); 135 profile_);
129 } 136 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/easy_unlock/easy_unlock_types.cc ('k') | chrome/browser/signin/easy_unlock_service_regular.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698