| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/dbus_method_call_status.h" | 5 #include "chromeos/dbus/fake_permission_broker_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/callback.h" |
| 8 | 8 |
| 9 namespace chromeos { | 9 namespace chromeos { |
| 10 namespace { | |
| 11 | 10 |
| 12 void EmptyVoidDBusMethodCallbackBody(DBusMethodCallStatus result) { | 11 FakePermissionBrokerClient::FakePermissionBrokerClient() {} |
| 12 |
| 13 FakePermissionBrokerClient::~FakePermissionBrokerClient() {} |
| 14 |
| 15 void FakePermissionBrokerClient::Init(dbus::Bus* bus) {} |
| 16 |
| 17 void FakePermissionBrokerClient::RequestPathAccess( |
| 18 const std::string& path, |
| 19 int interface_id, |
| 20 const ResultCallback& callback) { |
| 21 callback.Run(false); |
| 13 } | 22 } |
| 14 | 23 |
| 15 } // namespace | 24 void FakePermissionBrokerClient::RequestUsbAccess( |
| 16 | 25 const uint16_t vendor_id, |
| 17 | 26 const uint16_t product_id, |
| 18 VoidDBusMethodCallback EmptyVoidDBusMethodCallback() { | 27 int interface_id, |
| 19 return base::Bind(&EmptyVoidDBusMethodCallbackBody); | 28 const ResultCallback& callback) { |
| 29 callback.Run(false); |
| 20 } | 30 } |
| 21 | 31 |
| 22 } // namespace chromeos | 32 } // namespace chromeos |
| OLD | NEW |