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

Unified Diff: chromeos/cryptohome/homedir_methods.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: chromeos/cryptohome/homedir_methods.cc
diff --git a/chromeos/cryptohome/homedir_methods.cc b/chromeos/cryptohome/homedir_methods.cc
index aa3a29e7cf3e80afa9f36c38ea75962be8c2117e..a1bba213d506433e10d6c451f36a60ae7ebc2956 100644
--- a/chromeos/cryptohome/homedir_methods.cc
+++ b/chromeos/cryptohome/homedir_methods.cc
@@ -9,6 +9,7 @@
#include "chromeos/dbus/cryptohome/key.pb.h"
#include "chromeos/dbus/cryptohome/rpc.pb.h"
#include "chromeos/dbus/dbus_thread_manager.h"
+#include "google_apis/gaia/gaia_auth_util.h"
#if defined(USE_SYSTEM_PROTOBUF)
#include <google/protobuf/repeated_field.h>
@@ -93,7 +94,7 @@ void FillKeyProtobuf(const KeyDefinition& key_def, Key* key) {
// Fill identification protobuffer.
void FillIdentificationProtobuf(const Identification& id,
cryptohome::AccountIdentifier* id_proto) {
- id_proto->set_email(id.user_id);
+ id_proto->set_email(gaia::CanonicalizeEmail(id.user_id.GetUserEmail()));
}
// Fill authorization protobuffer.

Powered by Google App Engine
This is Rietveld 408576698