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

Unified Diff: chrome/browser/chromeos/cros/cros_network_functions.cc

Issue 10134028: Reimplement ActivateCellularModem without Libcros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add crosbug.com URLs to TODO comments Created 8 years, 8 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 | « no previous file | chrome/browser/chromeos/cros/cros_network_functions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cros_network_functions.cc
diff --git a/chrome/browser/chromeos/cros/cros_network_functions.cc b/chrome/browser/chromeos/cros/cros_network_functions.cc
index c61525bec6979276fad9e526fc4ee20aaa6970ee..41efb4a300be58ad8af3ae1c63517310620839b9 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.cc
+++ b/chrome/browser/chromeos/cros/cros_network_functions.cc
@@ -251,7 +251,14 @@ void SetLibcrosNetworkFunctionsEnabled(bool enabled) {
bool CrosActivateCellularModem(const std::string& service_path,
const std::string& carrier) {
- return chromeos::ActivateCellularModem(service_path.c_str(), carrier.c_str());
+ if (g_libcros_network_functions_enabled) {
+ return chromeos::ActivateCellularModem(service_path.c_str(),
+ carrier.c_str());
+ } else {
+ return DBusThreadManager::Get()->GetFlimflamServiceClient()->
+ CallActivateCellularModemAndBlock(dbus::ObjectPath(service_path),
+ carrier);
+ }
}
void CrosSetNetworkServiceProperty(const std::string& service_path,
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/cros_network_functions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698