Chromium Code Reviews| 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 c47dac80e695ca7aa8b18d11661710d0fb6f0130..f0170f6f8b5f5f0e48567eee8c0f09744cb8b43c 100644 |
| --- a/chrome/browser/signin/easy_unlock_screenlock_state_handler.h |
| +++ b/chrome/browser/signin/easy_unlock_screenlock_state_handler.h |
| @@ -10,6 +10,7 @@ |
| #include "base/strings/string16.h" |
| #include "components/proximity_auth/screenlock_bridge.h" |
| #include "components/proximity_auth/screenlock_state.h" |
| +#include "components/signin/core/account_id/account_id.h" |
| class PrefService; |
| @@ -30,13 +31,13 @@ class EasyUnlockScreenlockStateHandler |
| // on a new Chromebook. |
| }; |
| - // |user_email|: The email for the user associated with the profile to which |
| - // this class is attached. |
| + // |account_id|: The account id of the user associated with the profile to |
| + // which this class is attached. |
| // |initial_hardlock_state|: The initial hardlock state. |
| // |screenlock_bridge|: The screenlock bridge used to update the screen lock |
| // state. |
| EasyUnlockScreenlockStateHandler( |
| - const std::string& user_email, |
| + const AccountId& account_id, |
| HardlockState initial_hardlock_state, |
| proximity_auth::ScreenlockBridge* screenlock_bridge); |
| ~EasyUnlockScreenlockStateHandler() override; |
| @@ -75,7 +76,7 @@ class EasyUnlockScreenlockStateHandler |
| void OnScreenDidUnlock( |
| proximity_auth::ScreenlockBridge::LockHandler::ScreenType screen_type) |
| override; |
| - void OnFocusedUserChanged(const std::string& user_id) override; |
| + void OnFocusedUserChanged(const AccountId& account_id) override; |
| // Forces refresh of the Easy Unlock screenlock UI. |
| void RefreshScreenlockState(); |
| @@ -94,7 +95,7 @@ class EasyUnlockScreenlockStateHandler |
| void UpdateScreenlockAuthType(); |
| proximity_auth::ScreenlockState state_; |
| - std::string user_email_; |
| + AccountId account_id_; |
|
achuithb
2015/12/04 10:12:53
const
Alexander Alekseev
2015/12/04 12:44:06
Done.
|
| proximity_auth::ScreenlockBridge* screenlock_bridge_; |
| // State of hardlock. |