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

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: 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
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 1a43a3e3bcf80cb148a64a8760ca282250f2dd52..3664e4fc9f68a64ae71a44fa5aa664bfb8b47b00 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.cc
+++ b/chrome/browser/chromeos/cros/cros_network_functions.cc
@@ -239,7 +239,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,

Powered by Google App Engine
This is Rietveld 408576698