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. |