OLD | NEW |
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 "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h" | 5 #include "components/proximity_auth/cryptauth/cryptauth_enroller_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" | 8 #include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" |
9 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" | 9 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" |
10 #include "components/proximity_auth/cryptauth/fake_secure_message_delegate.h" | |
11 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" | 10 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" |
12 #include "components/proximity_auth/logging/logging.h" | 11 #include "components/proximity_auth/logging/logging.h" |
13 #include "crypto/sha2.h" | 12 #include "crypto/sha2.h" |
14 | 13 |
15 namespace proximity_auth { | 14 namespace proximity_auth { |
16 | 15 |
17 namespace { | 16 namespace { |
18 | 17 |
19 // A successful SetupEnrollment or FinishEnrollment response should contain this | 18 // A successful SetupEnrollment or FinishEnrollment response should contain this |
20 // status string. | 19 // status string. |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 219 } |
221 } | 220 } |
222 | 221 |
223 void CryptAuthEnrollerImpl::OnFinishEnrollmentFailure( | 222 void CryptAuthEnrollerImpl::OnFinishEnrollmentFailure( |
224 const std::string& error) { | 223 const std::string& error) { |
225 PA_LOG(WARNING) << "FinishEnrollment API failed with error: " << error; | 224 PA_LOG(WARNING) << "FinishEnrollment API failed with error: " << error; |
226 callback_.Run(false); | 225 callback_.Run(false); |
227 } | 226 } |
228 | 227 |
229 } // namespace proximity_auth | 228 } // namespace proximity_auth |
OLD | NEW |