Index: chrome/browser/signin/easy_unlock_service.h |
diff --git a/chrome/browser/signin/easy_unlock_service.h b/chrome/browser/signin/easy_unlock_service.h |
index 713986b03e4803c058810ea5af265df6419d65a5..caaa460557640140c0f126eb05ba981078bb2704 100644 |
--- a/chrome/browser/signin/easy_unlock_service.h |
+++ b/chrome/browser/signin/easy_unlock_service.h |
@@ -50,6 +50,16 @@ class EasyUnlockService : public KeyedService { |
TYPE_SIGNIN |
}; |
+ // Easy Unlock settings that the user can configure. |
+ struct UserSettings { |
+ UserSettings(); |
+ ~UserSettings(); |
+ |
+ // Whether to require the remote device to be in very close proximity |
+ // before allowing unlock (~1 feet). |
+ bool require_close_proximity; |
+ }; |
+ |
// Gets EasyUnlockService instance. |
static EasyUnlockService* Get(Profile* profile); |
@@ -66,6 +76,9 @@ class EasyUnlockService : public KeyedService { |
// Removes the hardlock state for the given user. |
static void ResetLocalStateForUser(const std::string& user_id); |
+ // Returns the user's preferences. |
+ static UserSettings GetUserSettings(const std::string& user_id); |
+ |
// Returns true if Easy sign-in is enabled. |
static bool IsSignInEnabled(); |