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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 1057613006: Use networkingPrivate.getDeviceState in Internet Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + WS Created 5 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 | « chrome/browser/resources/options/chromeos/network_list.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index 8868fc736f8717143ece430339c01f7c9e5d777a..bbce46f23222590372a7f4ae485ba49164cc99d2 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -106,8 +106,6 @@ const char kConfigureNetworkMessage[] = "configureNetwork";
const char kLoadVPNProviders[] = "loadVPNProviders";
// These are strings used to communicate with JavaScript.
-const char kTagCellularAvailable[] = "cellularAvailable";
-const char kTagCellularEnabled[] = "cellularEnabled";
const char kTagCellularSimAbsent[] = "cellularSimAbsent";
const char kTagCellularSimLockType[] = "cellularSimLockType";
const char kTagCellularSupportsScan[] = "cellularSupportsScan";
@@ -120,10 +118,6 @@ const char kTagSimOpUnlock[] = "unlock";
const char kTagVPNProviderName[] = "name";
const char kTagVPNProviderExtensionID[] = "extensionID";
const char kTagVpnList[] = "vpnList";
-const char kTagWifiAvailable[] = "wifiAvailable";
-const char kTagWifiEnabled[] = "wifiEnabled";
-const char kTagWimaxAvailable[] = "wimaxAvailable";
-const char kTagWimaxEnabled[] = "wimaxEnabled";
const char kTagWiredList[] = "wiredList";
const char kTagWirelessList[] = "wirelessList";
@@ -596,34 +590,14 @@ void InternetOptionsHandler::FillNetworkInfo(
dictionary->Set(kTagVpnList, GetVPNList());
dictionary->Set(kTagRememberedList, GetRememberedList());
- dictionary->SetBoolean(
- kTagWifiAvailable,
- handler->IsTechnologyAvailable(NetworkTypePattern::WiFi()));
- dictionary->SetBoolean(
- kTagWifiEnabled,
- handler->IsTechnologyEnabled(NetworkTypePattern::WiFi()));
-
const DeviceState* cellular =
handler->GetDeviceStateByType(NetworkTypePattern::Mobile());
- dictionary->SetBoolean(
- kTagCellularAvailable,
- handler->IsTechnologyAvailable(NetworkTypePattern::Mobile()));
- dictionary->SetBoolean(
- kTagCellularEnabled,
- handler->IsTechnologyEnabled(NetworkTypePattern::Mobile()));
dictionary->SetBoolean(kTagCellularSupportsScan,
cellular && cellular->support_network_scan());
dictionary->SetBoolean(kTagCellularSimAbsent,
cellular && cellular->IsSimAbsent());
dictionary->SetString(kTagCellularSimLockType,
cellular ? cellular->sim_lock_type() : "");
-
- dictionary->SetBoolean(
- kTagWimaxAvailable,
- handler->IsTechnologyAvailable(NetworkTypePattern::Wimax()));
- dictionary->SetBoolean(
- kTagWimaxEnabled,
- handler->IsTechnologyEnabled(NetworkTypePattern::Wimax()));
}
} // namespace options
« no previous file with comments | « chrome/browser/resources/options/chromeos/network_list.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698