Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/dbus/cryptohome_client.h" | 5 #include "chromeos/dbus/cryptohome_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 | 81 |
| 82 // CryptohomeClient override. | 82 // CryptohomeClient override. |
| 83 void IsMounted(const BoolDBusMethodCallback& callback) override { | 83 void IsMounted(const BoolDBusMethodCallback& callback) override { |
| 84 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, | 84 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, |
| 85 cryptohome::kCryptohomeIsMounted); | 85 cryptohome::kCryptohomeIsMounted); |
| 86 CallBoolMethod(&method_call, callback); | 86 CallBoolMethod(&method_call, callback); |
| 87 } | 87 } |
| 88 | 88 |
| 89 // CryptohomeClient override. | 89 // CryptohomeClient override. |
| 90 void Unmount(const BoolDBusMethodCallback& callback) override { | 90 void Unmount(const BoolDBusMethodCallback& callback) override { |
| 91 LOG(FATAL) << "unmount"; | |
|
xiyuan
2017/05/31 15:00:53
Is this intentional?
dspaid
2017/05/31 22:51:06
Oops, unrelated debugging work I was doing.
| |
| 91 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, | 92 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, |
| 92 cryptohome::kCryptohomeUnmount); | 93 cryptohome::kCryptohomeUnmount); |
| 93 CallBoolMethod(&method_call, callback); | 94 CallBoolMethod(&method_call, callback); |
| 94 } | 95 } |
| 95 | 96 |
| 96 // CryptohomeClient override. | 97 // CryptohomeClient override. |
| 97 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, | 98 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, |
| 98 const std::string& key, | 99 const std::string& key, |
| 99 const AsyncMethodCallback& callback) override { | 100 const AsyncMethodCallback& callback) override { |
| 100 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, | 101 dbus::MethodCall method_call(cryptohome::kCryptohomeInterface, |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1295 return new CryptohomeClientImpl(); | 1296 return new CryptohomeClientImpl(); |
| 1296 } | 1297 } |
| 1297 | 1298 |
| 1298 // static | 1299 // static |
| 1299 std::string CryptohomeClient::GetStubSanitizedUsername( | 1300 std::string CryptohomeClient::GetStubSanitizedUsername( |
| 1300 const cryptohome::Identification& cryptohome_id) { | 1301 const cryptohome::Identification& cryptohome_id) { |
| 1301 return cryptohome_id.id() + kUserIdStubHashSuffix; | 1302 return cryptohome_id.id() + kUserIdStubHashSuffix; |
| 1302 } | 1303 } |
| 1303 | 1304 |
| 1304 } // namespace chromeos | 1305 } // namespace chromeos |
| OLD | NEW |