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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.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: Fix Win GN build. Created 5 years, 1 month 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/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
index e0789c8005fe615bf03e3f46fb0c7b8ae497ee8c..7e6256797d69a2bd2406182e32464b46ba4029e1 100644
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/logging.h"
#include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h"
+#include "components/signin/core/account_id/account_id.h"
#include "google_apis/gaia/gaia_auth_util.h"
namespace chromeos {
@@ -32,8 +33,8 @@ void EasyUnlockGetKeysOperation::Start() {
}
void EasyUnlockGetKeysOperation::GetKeyData() {
- std::string canonicalized =
- gaia::CanonicalizeEmail(user_context_.GetUserID());
+ const std::string canonicalized =
+ gaia::CanonicalizeEmail(user_context_.GetAccountId().GetUserEmail());
cryptohome::Identification id(canonicalized);
cryptohome::HomedirMethods::GetInstance()->GetKeyDataEx(
id,

Powered by Google App Engine
This is Rietveld 408576698