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

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

Issue 1377313002: Revert of Hook up ProximityAuthSystem in EasyUnlockService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth_connection
Patch Set: 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 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();

Powered by Google App Engine
This is Rietveld 408576698