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

Unified Diff: chrome/browser/signin/easy_unlock_service.h

Issue 880603003: Copy Smart Lock user preferences to local state so we can access them on the sign-in screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change name to requireCloseProximity Created 5 years, 11 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: 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();

Powered by Google App Engine
This is Rietveld 408576698