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

Unified Diff: chromeos/dbus/fake_cryptohome_client.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: Add missing files. 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: chromeos/dbus/fake_cryptohome_client.cc
diff --git a/chromeos/dbus/fake_cryptohome_client.cc b/chromeos/dbus/fake_cryptohome_client.cc
index 236b1f95506dcd3818ae70bb5ac7217d9e84bd51..22bf3546121610c989f8530f94c2dd2e42c008e2 100644
--- a/chromeos/dbus/fake_cryptohome_client.cc
+++ b/chromeos/dbus/fake_cryptohome_client.cc
@@ -93,6 +93,14 @@ void FakeCryptohomeClient::AsyncRemove(
ReturnAsyncMethodResult(callback, false);
}
+void FakeCryptohomeClient::RenameCryptohome(
+ const cryptohome::AccountIdentifier& id_from,
+ const cryptohome::AccountIdentifier& id_to,
+ const ProtobufMethodCallback& callback) {
+ cryptohome::BaseReply reply;
+ ReturnProtobufMethodCallback(reply, callback);
+}
+
void FakeCryptohomeClient::GetSystemSalt(
const GetSystemSaltCallback& callback) {
base::MessageLoop::current()->PostTask(
@@ -489,7 +497,7 @@ void FakeCryptohomeClient::MountEx(
cryptohome::BaseReply reply;
cryptohome::MountReply* mount =
reply.MutableExtension(cryptohome::MountReply::reply);
- mount->set_sanitized_username(GetStubSanitizedUsername(id.email()));
+ mount->set_sanitized_username(GetStubSanitizedUsername(id.account_id()));
ReturnProtobufMethodCallback(reply, callback);
}

Powered by Google App Engine
This is Rietveld 408576698