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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_device_manager.cc

Issue 1372283002: Hook up ProximityAuthSystem in EasyUnlockService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_connection
Patch Set: remove log Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/proximity_auth/cryptauth/cryptauth_device_manager.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_device_manager.cc b/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
index bbb6c17a008eb3d774e0b29f1e75528e9b5ac37b..ecc0e5c71c464e286bf0079bf8523eba42b91791 100644
--- a/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_device_manager.cc
@@ -94,7 +94,9 @@ CryptAuthDeviceManager::CryptAuthDeviceManager(
client_factory_(client_factory.Pass()),
gcm_manager_(gcm_manager),
pref_service_(pref_service),
- weak_ptr_factory_(this) {}
+ weak_ptr_factory_(this) {
+ UpdateUnlockKeysFromPrefs();
+}
CryptAuthDeviceManager::~CryptAuthDeviceManager() {
gcm_manager_->RemoveObserver(this);
@@ -112,8 +114,6 @@ void CryptAuthDeviceManager::RegisterPrefs(PrefRegistrySimple* registry) {
}
void CryptAuthDeviceManager::Start() {
- UpdateUnlockKeysFromPrefs();
-
gcm_manager_->AddObserver(this);
base::Time last_successful_sync = GetLastSyncTime();

Powered by Google App Engine
This is Rietveld 408576698