| Index: chromeos/dbus/cryptohome_client.cc
|
| diff --git a/chromeos/dbus/cryptohome_client.cc b/chromeos/dbus/cryptohome_client.cc
|
| index 276cd892c91433ddbccafb8024bc3741c36f4f68..436fcd45648348311121750f6dda417571a845b6 100644
|
| --- a/chromeos/dbus/cryptohome_client.cc
|
| +++ b/chromeos/dbus/cryptohome_client.cc
|
| @@ -133,6 +133,20 @@ class CryptohomeClientImpl : public CryptohomeClient {
|
| return true;
|
| }
|
|
|
| + // CryptohomeClient override,
|
| + virtual void GetSanitizedUsername(
|
| + const std::string& username,
|
| + const StringDBusMethodCallback& callback) OVERRIDE {
|
| + INITIALIZE_METHOD_CALL(method_call,
|
| + cryptohome::kCryptohomeGetSanitizedUsername);
|
| + dbus::MessageWriter writer(&method_call);
|
| + writer.AppendString(username);
|
| + proxy_->CallMethod(&method_call, dbus::ObjectProxy::TIMEOUT_USE_DEFAULT,
|
| + base::Bind(&CryptohomeClientImpl::OnStringMethod,
|
| + weak_ptr_factory_.GetWeakPtr(),
|
| + callback));
|
| + }
|
| +
|
| // CryptohomeClient override.
|
| virtual void AsyncMount(const std::string& username,
|
| const std::string& key,
|
| @@ -610,6 +624,17 @@ class CryptohomeClientStubImpl : public CryptohomeClient {
|
| }
|
|
|
| // CryptohomeClient override.
|
| + virtual void GetSanitizedUsername(
|
| + const std::string& username,
|
| + const StringDBusMethodCallback& callback) OVERRIDE {
|
| + const char kStubSanitizedUsername[] =
|
| + "0123456789ABCDEF0123456789ABCDEF01234567";
|
| + MessageLoop::current()->PostTask(
|
| + FROM_HERE,
|
| + base::Bind(callback, DBUS_METHOD_CALL_SUCCESS, kStubSanitizedUsername));
|
| + }
|
| +
|
| + // CryptohomeClient override.
|
| virtual void AsyncMount(const std::string& username,
|
| const std::string& key,
|
| int flags,
|
|
|