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 ecc0e5c71c464e286bf0079bf8523eba42b91791..bbb6c17a008eb3d774e0b29f1e75528e9b5ac37b 100644 |
--- a/components/proximity_auth/cryptauth/cryptauth_device_manager.cc |
+++ b/components/proximity_auth/cryptauth/cryptauth_device_manager.cc |
@@ -94,9 +94,7 @@ |
client_factory_(client_factory.Pass()), |
gcm_manager_(gcm_manager), |
pref_service_(pref_service), |
- weak_ptr_factory_(this) { |
- UpdateUnlockKeysFromPrefs(); |
-} |
+ weak_ptr_factory_(this) {} |
CryptAuthDeviceManager::~CryptAuthDeviceManager() { |
gcm_manager_->RemoveObserver(this); |
@@ -114,6 +112,8 @@ |
} |
void CryptAuthDeviceManager::Start() { |
+ UpdateUnlockKeysFromPrefs(); |
+ |
gcm_manager_->AddObserver(this); |
base::Time last_successful_sync = GetLastSyncTime(); |