Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: chromeos/network/cros_network_functions.cc

Issue 12041029: Add ResetModem method and call it once non_cellular activation is done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/network/cros_network_functions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/cros_network_functions.cc
diff --git a/chromeos/network/cros_network_functions.cc b/chromeos/network/cros_network_functions.cc
index c7d02b12d0f51ac5516b1a99e126feb3c9f0eeea..350b837e091358512c741b71c2359b1da3970dcd 100644
--- a/chromeos/network/cros_network_functions.cc
+++ b/chromeos/network/cros_network_functions.cc
@@ -666,4 +666,12 @@ void CrosSetCarrier(const std::string& device_path,
base::Bind(&OnNetworkActionError, callback, device_path));
}
+// Resets the device.
+void CrosReset(const std::string& device_path) {
+ DBusThreadManager::Get()->GetShillDeviceClient()->Reset(
+ dbus::ObjectPath(device_path),
+ base::Bind(&DoNothing),
+ base::Bind(&IgnoreErrors));
+}
+
} // namespace chromeos
« no previous file with comments | « chromeos/network/cros_network_functions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698