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

Unified Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
index b5f72bcef2d16f91bb12b371f08083d39bd48030..8051e03148831370cfdbc101fb58c43aa2657e7b 100644
--- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
+++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
@@ -642,7 +642,7 @@ bool EasyUnlockPrivateGetSignInChallengeFunction::RunAsync() {
return false;
}
key_manager->SignUsingTpmKey(
- EasyUnlockService::Get(profile)->GetUserEmail(),
+ EasyUnlockService::Get(profile)->GetUserID(),
std::string(params->nonce.begin(), params->nonce.end()),
base::Bind(&EasyUnlockPrivateGetSignInChallengeFunction::OnDone, this,
challenge));
@@ -694,7 +694,7 @@ bool EasyUnlockPrivateGetUserInfoFunction::RunSync() {
EasyUnlockService* service =
EasyUnlockService::Get(Profile::FromBrowserContext(browser_context()));
std::vector<linked_ptr<easy_unlock_private::UserInfo> > users;
- std::string user_id = service->GetUserEmail();
+ user_manager::UserID user_id = service->GetUserID();
if (!user_id.empty()) {
users.push_back(
linked_ptr<easy_unlock_private::UserInfo>(

Powered by Google App Engine
This is Rietveld 408576698