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

Unified Diff: chrome/browser/signin/easy_unlock_screenlock_state_handler.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_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);
};

Powered by Google App Engine
This is Rietveld 408576698