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

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: Rebase 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 e0fdd818dd930cc09d0e23858cc3b583bab4abf0..337cb270b98bde89655d680592df323a3c24cb86 100644
--- a/chrome/browser/chromeos/cros/cros_network_functions.cc
+++ b/chrome/browser/chromeos/cros/cros_network_functions.cc
@@ -713,7 +713,14 @@ 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);
+ DBusThreadManager::Get()->GetFlimflamManagerClient()->SetProperty(
+ flimflam::kOfflineModeProperty, value, base::Bind(&DoNothing));
+ return true;
+ }
}
IPConfigStatus* CrosListIPConfigs(const std::string& device_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