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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 4 years, 10 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/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 fdfe3bfb74058cb8cb0cc8224729837533dd0ead..46e75ebd451dac156da02008d275f70368580631 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
@@ -36,9 +36,7 @@ void EasyUnlockGetKeysOperation::Start() {
}
void EasyUnlockGetKeysOperation::GetKeyData() {
- const std::string canonicalized =
- gaia::CanonicalizeEmail(user_context_.GetAccountId().GetUserEmail());
- cryptohome::Identification id(canonicalized);
+ const cryptohome::Identification id(user_context_.GetAccountId());
cryptohome::HomedirMethods::GetInstance()->GetKeyDataEx(
id,
EasyUnlockKeyManager::GetKeyLabel(key_index_),

Powered by Google App Engine
This is Rietveld 408576698