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

Unified Diff: chromeos/login/auth/fake_extended_authenticator.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
« no previous file with comments | « chromeos/login/auth/extended_authenticator_impl.cc ('k') | chromeos/login/auth/login_performer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/fake_extended_authenticator.cc
diff --git a/chromeos/login/auth/fake_extended_authenticator.cc b/chromeos/login/auth/fake_extended_authenticator.cc
index 90b569bc13d4ed697405a1b8f366211caa1052ab..e57755b99fe938b21b68b57b8a8ff7e7bc093ee7 100644
--- a/chromeos/login/auth/fake_extended_authenticator.cc
+++ b/chromeos/login/auth/fake_extended_authenticator.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "chromeos/login/auth/auth_status_consumer.h"
+#include "components/signin/core/account_id/account_id.h"
namespace chromeos {
@@ -37,7 +38,8 @@ void FakeExtendedAuthenticator::AuthenticateToMount(
const ResultCallback& success_callback) {
if (expected_user_context_ == context) {
UserContext reported_user_context(context);
- const std::string mount_hash = reported_user_context.GetUserID() + "-hash";
+ const std::string mount_hash =
+ reported_user_context.GetAccountId().GetUserEmail() + "-hash";
reported_user_context.SetUserIDHash(mount_hash);
if (!success_callback.is_null())
success_callback.Run(mount_hash);
« no previous file with comments | « chromeos/login/auth/extended_authenticator_impl.cc ('k') | chromeos/login/auth/login_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698