diff options
author | rkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 15:39:52 +0000 |
---|---|---|
committer | rkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 15:39:52 +0000 |
commit | 6f2f1c1c12c052590d204650533240de0d7a5f1a (patch) | |
tree | 4130f8ac22a72141e002cbf6022242f05bef5a72 /chromeos/dbus/shill_device_client.cc | |
parent | 74d74897fceb4ff3c24f9aa7273eab4568e92577 (diff) | |
download | chromium_src-6f2f1c1c12c052590d204650533240de0d7a5f1a.zip chromium_src-6f2f1c1c12c052590d204650533240de0d7a5f1a.tar.gz chromium_src-6f2f1c1c12c052590d204650533240de0d7a5f1a.tar.bz2 |
Add ResetModem method and call it once non_cellular activation is done.
Once non_cellular activation is done, the modem needs to be reset to get into the new activated state.
R=stevenjb@chromium.org,benchan@chromium.org
BUG=171535
Review URL: https://chromiumcodereview.appspot.com/12041029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_device_client.cc')
-rw-r--r-- | chromeos/dbus/shill_device_client.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_device_client.cc b/chromeos/dbus/shill_device_client.cc index e44eca1..92f67a8 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); + 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; } |