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

Side by Side Diff: components/cryptauth/cryptauth_enroller_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 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/cryptauth/cryptauth_enroller_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" 10 #include "components/cryptauth/cryptauth_client_impl.h"
11 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" 11 #include "components/cryptauth/cryptauth_enrollment_utils.h"
12 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" 12 #include "components/cryptauth/secure_message_delegate.h"
13 #include "components/proximity_auth/logging/logging.h" 13 #include "components/proximity_auth/logging/logging.h"
14 #include "crypto/sha2.h" 14 #include "crypto/sha2.h"
15 15
16 namespace proximity_auth { 16 namespace cryptauth {
17 17
18 namespace { 18 namespace {
19 19
20 // A successful SetupEnrollment or FinishEnrollment response should contain this 20 // A successful SetupEnrollment or FinishEnrollment response should contain this
21 // status string. 21 // status string.
22 const char kResponseStatusOk[] = "ok"; 22 const char kResponseStatusOk[] = "ok";
23 23
24 // The name of the "gcmV1" protocol that the enrolling device supports. 24 // The name of the "gcmV1" protocol that the enrolling device supports.
25 const char kSupportedEnrollmentTypeGcmV1[] = "gcmV1"; 25 const char kSupportedEnrollmentTypeGcmV1[] = "gcmV1";
26 26
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 callback_.Run(true); 219 callback_.Run(true);
220 } 220 }
221 } 221 }
222 222
223 void CryptAuthEnrollerImpl::OnFinishEnrollmentFailure( 223 void CryptAuthEnrollerImpl::OnFinishEnrollmentFailure(
224 const std::string& error) { 224 const std::string& error) {
225 PA_LOG(WARNING) << "FinishEnrollment API failed with error: " << error; 225 PA_LOG(WARNING) << "FinishEnrollment API failed with error: " << error;
226 callback_.Run(false); 226 callback_.Run(false);
227 } 227 }
228 228
229 } // namespace proximity_auth 229 } // namespace cryptauth
OLDNEW
« no previous file with comments | « components/cryptauth/cryptauth_enroller_impl.h ('k') | components/cryptauth/cryptauth_enroller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698