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

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

Issue 10177001: Reimplement CrosSetOfflineMode 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..a3818c1007a27072a5dfa0d7f97c0743c360a4ea 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.cc
+++ b/chrome/browser/chromeos/cros/cros_network_functions.cc
@@ -576,7 +576,13 @@ void CrosRequestCellularRegister(const std::string& device_path,
}
bool CrosSetOfflineMode(bool offline) {
- return chromeos::SetOfflineMode(offline);
+ if (g_libcros_network_functions_enabled) {
+ return chromeos::SetOfflineMode(offline);
+ } else {
+ base::FundamentalValue value(offline);
+ return DBusThreadManager::Get()->GetFlimflamManagerClient()->
+ CallSetPropertyAndBlock(flimflam::kOfflineModeProperty, value);
stevenjb 2012/04/23 21:42:06 Use a non blocking version; the UI code doesn't re
hashimoto 2012/04/24 04:37:54 Done.
+ }
}
IPConfigStatus* CrosListIPConfigs(const std::string& device_path) {

Powered by Google App Engine
This is Rietveld 408576698