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

Side by Side Diff: components/proximity_auth/cryptauth/cryptauth_enrollment_manager.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h" 5 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64url.h" 9 #include "base/base64url.h"
10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/time/clock.h" 10 #include "base/time/clock.h"
13 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/prefs/pref_registry_simple.h"
13 #include "components/prefs/pref_service.h"
14 #include "components/proximity_auth/cryptauth/cryptauth_enroller.h" 14 #include "components/proximity_auth/cryptauth/cryptauth_enroller.h"
15 #include "components/proximity_auth/cryptauth/pref_names.h" 15 #include "components/proximity_auth/cryptauth/pref_names.h"
16 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" 16 #include "components/proximity_auth/cryptauth/secure_message_delegate.h"
17 #include "components/proximity_auth/cryptauth/sync_scheduler_impl.h" 17 #include "components/proximity_auth/cryptauth/sync_scheduler_impl.h"
18 #include "components/proximity_auth/logging/logging.h" 18 #include "components/proximity_auth/logging/logging.h"
19 19
20 namespace proximity_auth { 20 namespace proximity_auth {
21 21
22 namespace { 22 namespace {
23 23
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 << device_info.gcm_registration_id(); 291 << device_info.gcm_registration_id();
292 292
293 cryptauth_enroller_ = enroller_factory_->CreateInstance(); 293 cryptauth_enroller_ = enroller_factory_->CreateInstance();
294 cryptauth_enroller_->Enroll( 294 cryptauth_enroller_->Enroll(
295 GetUserPublicKey(), GetUserPrivateKey(), device_info, invocation_reason, 295 GetUserPublicKey(), GetUserPrivateKey(), device_info, invocation_reason,
296 base::Bind(&CryptAuthEnrollmentManager::OnEnrollmentFinished, 296 base::Bind(&CryptAuthEnrollmentManager::OnEnrollmentFinished,
297 weak_ptr_factory_.GetWeakPtr())); 297 weak_ptr_factory_.GetWeakPtr()));
298 } 298 }
299 299
300 } // namespace proximity_auth 300 } // namespace proximity_auth
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698