Chromium Code Reviews| Index: chromeos/dbus/shill_device_client.cc |
| diff --git a/chromeos/dbus/shill_device_client.cc b/chromeos/dbus/shill_device_client.cc |
| index e44eca10904b4115fcb8bb42e29fe4cdb3011ef3..92f67a81cd5f313f5937a66773bf60e62ffedefb 100644 |
| --- a/chromeos/dbus/shill_device_client.cc |
| +++ b/chromeos/dbus/shill_device_client.cc |
| @@ -178,6 +178,15 @@ class ShillDeviceClientImpl : public ShillDeviceClient { |
| &method_call, callback, error_callback); |
| } |
| + virtual void Reset(const dbus::ObjectPath& device_path, |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) OVERRIDE { |
| + dbus::MethodCall method_call(flimflam::kFlimflamDeviceInterface, |
| + shill::kResetFunction); |
|
Ben Chan
2013/01/23 19:57:20
shill::kResetFunction is not defined.
Ben Chan
2013/01/23 20:19:48
See https://gerrit.chromium.org/gerrit/#/c/41849
|
| + GetHelper(device_path)->CallVoidMethodWithErrorCallback( |
| + &method_call, callback, error_callback); |
| + } |
| + |
| virtual TestInterface* GetTestInterface() OVERRIDE { |
| return NULL; |
| } |
| @@ -367,6 +376,14 @@ class ShillDeviceClientStubImpl : public ShillDeviceClient, |
| MessageLoop::current()->PostTask(FROM_HERE, callback); |
| } |
| + virtual void Reset(const dbus::ObjectPath& device_path, |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) OVERRIDE { |
| + if (callback.is_null()) |
| + return; |
| + MessageLoop::current()->PostTask(FROM_HERE, callback); |
| + } |
| + |
| virtual ShillDeviceClient::TestInterface* GetTestInterface() OVERRIDE { |
| return this; |
| } |