Index: chrome/browser/signin/easy_unlock_service_regular.cc |
diff --git a/chrome/browser/signin/easy_unlock_service_regular.cc b/chrome/browser/signin/easy_unlock_service_regular.cc |
index 0c3dabced7b05dab7dabee8dbe503073b1e82ab2..4b5ac1a4246f8babf14ee389da032f984dacc8c1 100644 |
--- a/chrome/browser/signin/easy_unlock_service_regular.cc |
+++ b/chrome/browser/signin/easy_unlock_service_regular.cc |
@@ -41,6 +41,7 @@ |
#include "components/prefs/scoped_user_pref_update.h" |
#include "components/proximity_auth/logging/logging.h" |
#include "components/proximity_auth/proximity_auth_pref_manager.h" |
+#include "components/proximity_auth/proximity_auth_pref_names.h" |
#include "components/proximity_auth/proximity_auth_system.h" |
#include "components/proximity_auth/screenlock_bridge.h" |
#include "components/proximity_auth/switches.h" |
@@ -450,6 +451,9 @@ void EasyUnlockServiceRegular::InitializeInternal() { |
registrar_.Add(prefs::kEasyUnlockProximityRequired, |
base::Bind(&EasyUnlockServiceRegular::OnPrefsChanged, |
base::Unretained(this))); |
+ registrar_.Add(proximity_auth::prefs::kEasyUnlockProximityThreshold, |
+ base::Bind(&EasyUnlockServiceRegular::OnPrefsChanged, |
+ base::Unretained(this))); |
OnPrefsChanged(); |
@@ -614,6 +618,10 @@ void EasyUnlockServiceRegular::SyncProfilePrefsToLocalState() { |
user_prefs_dict->SetBooleanWithoutPathExpansion( |
prefs::kEasyUnlockProximityRequired, |
profile_prefs->GetBoolean(prefs::kEasyUnlockProximityRequired)); |
+ user_prefs_dict->SetIntegerWithoutPathExpansion( |
+ proximity_auth::prefs::kEasyUnlockProximityThreshold, |
+ profile_prefs->GetInteger( |
+ proximity_auth::prefs::kEasyUnlockProximityThreshold)); |
DictionaryPrefUpdate update(local_state, |
prefs::kEasyUnlockLocalStateUserPrefs); |