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(); |