Index: chrome/browser/signin/easy_unlock_screenlock_state_handler.h |
diff --git a/chrome/browser/signin/easy_unlock_screenlock_state_handler.h b/chrome/browser/signin/easy_unlock_screenlock_state_handler.h |
index 359b09b5a253dfe46e3debaca4d248d0294b8b1c..f8917a94330c96f16a319f1efa047098ec3fb65a 100644 |
--- a/chrome/browser/signin/easy_unlock_screenlock_state_handler.h |
+++ b/chrome/browser/signin/easy_unlock_screenlock_state_handler.h |
@@ -51,6 +51,7 @@ class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { |
// |screenlock_bridge|: The screenlock bridge used to update the screen lock |
// state. |
EasyUnlockScreenlockStateHandler(const std::string& user_email, |
+ bool initially_hardlocked, |
PrefService* pref_service, |
ScreenlockBridge* screenlock_bridge); |
virtual ~EasyUnlockScreenlockStateHandler(); |
@@ -59,12 +60,18 @@ class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { |
// accordingly. |
void ChangeState(State new_state); |
+ // Updates the screenlock state according to whether the pod is hardlocked or |
+ // not. |
+ void SetHardlocked(bool value); |
+ |
private: |
// ScreenlockBridge::Observer: |
virtual void OnScreenDidLock() OVERRIDE; |
virtual void OnScreenDidUnlock() OVERRIDE; |
virtual void OnFocusedUserChanged(const std::string& user_id) OVERRIDE; |
+ void ShowHardlockUI(); |
+ |
// Updates icon's tooltip options. |
// |trial_run|: Whether the trial Easy Unlock run is in progress. |
void UpdateTooltipOptions( |
@@ -92,6 +99,10 @@ class EasyUnlockScreenlockStateHandler : public ScreenlockBridge::Observer { |
PrefService* pref_service_; |
ScreenlockBridge* screenlock_bridge_; |
+ // Whether the easy unlock is disabled due to user hardlocking the pod. |
+ bool hardlocked_; |
+ bool hardlock_ui_shown_; |
+ |
DISALLOW_COPY_AND_ASSIGN(EasyUnlockScreenlockStateHandler); |
}; |