Chromium Code Reviews| Index: chrome/browser/signin/easy_unlock_service.cc |
| diff --git a/chrome/browser/signin/easy_unlock_service.cc b/chrome/browser/signin/easy_unlock_service.cc |
| index 0eda490a962fe4704665452e72b2e71409369ddd..3316132cf7f33bfddc0680da240cae0695f2b424 100644 |
| --- a/chrome/browser/signin/easy_unlock_service.cc |
| +++ b/chrome/browser/signin/easy_unlock_service.cc |
| @@ -40,6 +40,7 @@ |
| #include "components/proximity_auth/proximity_auth_system.h" |
| #include "components/proximity_auth/screenlock_bridge.h" |
| #include "components/proximity_auth/switches.h" |
| +#include "components/signin/core/account_id/account_id.h" |
| #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| #include "components/signin/core/browser/signin_manager.h" |
| #include "components/user_manager/user.h" |
| @@ -56,6 +57,7 @@ |
| #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| #include "chromeos/dbus/dbus_thread_manager.h" |
| #include "chromeos/dbus/power_manager_client.h" |
| +#include "components/signin/core/account_id/account_id.h" |
|
achuithb
2015/10/23 00:08:51
why twice?
Alexander Alekseev
2015/10/23 09:11:23
Actually only this one is needed.
Done.
|
| #include "components/user_manager/user_manager.h" |
| #endif |
| @@ -612,11 +614,9 @@ void EasyUnlockService::CheckCryptohomeKeysAndMaybeHardlock() { |
| DCHECK(key_manager); |
| key_manager->GetDeviceDataList( |
| - chromeos::UserContext(user_id), |
| + chromeos::UserContext(AccountId::FromUserEmail(user_id)), |
| base::Bind(&EasyUnlockService::OnCryptohomeKeysFetchedForChecking, |
| - weak_ptr_factory_.GetWeakPtr(), |
| - user_id, |
| - paired_devices)); |
| + weak_ptr_factory_.GetWeakPtr(), user_id, paired_devices)); |
| #endif |
| } |