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

Unified Diff: chrome/browser/chromeos/dom_ui/internet_options_handler.cc

Issue 4572001: Pass wifi available/enabled status to JS at initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespaces. Created 10 years, 1 month 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/resources/options/chromeos_internet_options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dom_ui/internet_options_handler.cc
diff --git a/chrome/browser/chromeos/dom_ui/internet_options_handler.cc b/chrome/browser/chromeos/dom_ui/internet_options_handler.cc
index 6fd5746783d29dbefa4b708bdf6a704123559ae4..d3c60bc16a81a83b5bebdaf07103919777640e24 100644
--- a/chrome/browser/chromeos/dom_ui/internet_options_handler.cc
+++ b/chrome/browser/chromeos/dom_ui/internet_options_handler.cc
@@ -301,6 +301,8 @@ void InternetOptionsHandler::GetLocalizedValues(
chromeos::NetworkLibrary* cros =
chromeos::CrosLibrary::Get()->GetNetworkLibrary();
+ localized_strings->SetBoolean("wifiAvailable", cros->wifi_available());
+ localized_strings->SetBoolean("wifiEnabled", cros->wifi_enabled());
localized_strings->SetBoolean("cellularAvailable",
cros->cellular_available());
localized_strings->SetBoolean("cellularEnabled", cros->cellular_enabled());
« no previous file with comments | « no previous file | chrome/browser/resources/options/chromeos_internet_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698