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

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

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Rebased. Created 5 years, 2 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.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
}

Powered by Google App Engine
This is Rietveld 408576698