Index: components/proximity_auth/proximity_auth_pref_manager.h |
diff --git a/components/proximity_auth/proximity_auth_pref_manager.h b/components/proximity_auth/proximity_auth_pref_manager.h |
index 9f74191417fc2f6efe8823ad2e81f4e26085ead1..37669276f880f4ac7411be2aca4b1ed785f366b7 100644 |
--- a/components/proximity_auth/proximity_auth_pref_manager.h |
+++ b/components/proximity_auth/proximity_auth_pref_manager.h |
@@ -65,6 +65,14 @@ class ProximityAuthPrefManager { |
virtual void SetLastPasswordEntryTimestampMs(int64_t timestamp_ms); |
virtual int64_t GetLastPasswordEntryTimestampMs() const; |
+ // Setter and getter for the proximity threshold. This preference is |
+ // exposed to the user, allowing him / her to change how close the |
+ // phone must for the unlock to be allowed. |
+ // Note: These are arbitrary values, the actual mapping is done in the |
+ // ProximityMonitorImpl. |
+ virtual void SetProximityThreshold(int value); |
Tim Song
2017/07/10 19:27:56
This |value| should be an enum.
sacomoto
2017/07/11 09:56:06
Done.
|
+ virtual int GetProximityThreshold() const; |
+ |
private: |
const base::DictionaryValue* GetRemoteBleDevices() const; |