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

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

Issue 608693006: [Easy Unlock] When hardlocking, show a different icon on user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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 666b98734a6fd6d0ab7b98107e9a102a2bb7524e..6e2771afdac7434cc96dc6c3a2b520b1bc4e594d 100644
--- a/chrome/browser/signin/easy_unlock_service.h
+++ b/chrome/browser/signin/easy_unlock_service.h
@@ -19,6 +19,10 @@ class DictionaryValue;
class ListValue;
}
+namespace user_manager {
+class User;
+}
+
namespace user_prefs {
class PrefRegistrySyncable;
}
@@ -43,6 +47,10 @@ class EasyUnlockService : public KeyedService {
// Gets EasyUnlockService instance.
static EasyUnlockService* Get(Profile* profile);
+ // Gets EasyUnlockService instance associated with a user if the user is
+ // logged in and his profile is initialized.
+ static EasyUnlockService* GetForUser(const user_manager::User& user);
+
// Registers Easy Unlock profile preferences.
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
@@ -65,6 +73,12 @@ class EasyUnlockService : public KeyedService {
virtual void SetRemoteDevices(const base::ListValue& devices) = 0;
virtual void ClearRemoteDevices() = 0;
+ // Hardlocks the service for the associated user.
+ virtual void SetHardlocked(bool value) = 0;
+
+ // Whether the Easy Unlock service is hardlocked for the associated user.
+ virtual bool IsHardlocked() const = 0;
+
// Runs the flow for turning Easy unlock off.
virtual void RunTurnOffFlow() = 0;
@@ -156,6 +170,9 @@ class EasyUnlockService : public KeyedService {
// Resets the screenlock state set by this service.
void ResetScreenlockState();
+ // Updates |screenlock_state_handler_|'s hardlocked state.
+ void SetScreenlockHardlockedState(bool value);
+
private:
// A class to detect whether a bluetooth adapter is present.
class BluetoothDetector;
« no previous file with comments | « chrome/browser/signin/easy_unlock_screenlock_state_handler_unittest.cc ('k') | chrome/browser/signin/easy_unlock_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698