| Index: chromeos/dbus/fake_permission_broker_client.cc
|
| diff --git a/chromeos/dbus/dbus_method_call_status.cc b/chromeos/dbus/fake_permission_broker_client.cc
|
| similarity index 26%
|
| copy from chromeos/dbus/dbus_method_call_status.cc
|
| copy to chromeos/dbus/fake_permission_broker_client.cc
|
| index 2cd0d861b1b87f978f5f45d4e2f8f953f644114e..2570fa3022cb982e4cce82cc2d6b6a9914d426b3 100644
|
| --- a/chromeos/dbus/dbus_method_call_status.cc
|
| +++ b/chromeos/dbus/fake_permission_broker_client.cc
|
| @@ -2,21 +2,31 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chromeos/dbus/dbus_method_call_status.h"
|
| +#include "chromeos/dbus/fake_permission_broker_client.h"
|
|
|
| -#include "base/bind.h"
|
| +#include "base/callback.h"
|
|
|
| namespace chromeos {
|
| -namespace {
|
|
|
| -void EmptyVoidDBusMethodCallbackBody(DBusMethodCallStatus result) {
|
| -}
|
| +FakePermissionBrokerClient::FakePermissionBrokerClient() {}
|
| +
|
| +FakePermissionBrokerClient::~FakePermissionBrokerClient() {}
|
|
|
| -} // namespace
|
| +void FakePermissionBrokerClient::Init(dbus::Bus* bus) {}
|
|
|
| +void FakePermissionBrokerClient::RequestPathAccess(
|
| + const std::string& path,
|
| + int interface_id,
|
| + const ResultCallback& callback) {
|
| + callback.Run(false);
|
| +}
|
|
|
| -VoidDBusMethodCallback EmptyVoidDBusMethodCallback() {
|
| - return base::Bind(&EmptyVoidDBusMethodCallbackBody);
|
| +void FakePermissionBrokerClient::RequestUsbAccess(
|
| + const uint16_t vendor_id,
|
| + const uint16_t product_id,
|
| + int interface_id,
|
| + const ResultCallback& callback) {
|
| + callback.Run(false);
|
| }
|
|
|
| } // namespace chromeos
|
|
|