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

Unified Diff: components/proximity_auth/proximity_auth_pref_manager.h

Issue 2973243002: Adding pref to store the user-selected proximity threshold. (Closed)
Patch Set: Fixing tests Created 3 years, 5 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/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;

Powered by Google App Engine
This is Rietveld 408576698