summaryrefslogtreecommitdiffstats
path: root/chromeos/network
diff options
context:
space:
mode:
authorstevenjb <stevenjb@chromium.org>2015-08-18 00:56:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-18 07:57:12 +0000
commit948821a87b07c02743845cb2158c46ab43615eb6 (patch)
tree0e99952538f4e5d9f0d02d5e6fb9b7224c7d0017 /chromeos/network
parentc1f30005558972165dc84fc2f0738801e5675d6a (diff)
downloadchromium_src-948821a87b07c02743845cb2158c46ab43615eb6.zip
chromium_src-948821a87b07c02743845cb2158c46ab43615eb6.tar.gz
chromium_src-948821a87b07c02743845cb2158c46ab43615eb6.tar.bz2
Elim unused Chrome OS networking UI code
BUG=none Review URL: https://codereview.chromium.org/1285373004 Cr-Commit-Position: refs/heads/master@{#343852}
Diffstat (limited to 'chromeos/network')
-rw-r--r--chromeos/network/network_util.cc11
-rw-r--r--chromeos/network/network_util.h6
2 files changed, 3 insertions, 14 deletions
diff --git a/chromeos/network/network_util.cc b/chromeos/network/network_util.cc
index 54a619a..af660e2 100644
--- a/chromeos/network/network_util.cc
+++ b/chromeos/network/network_util.cc
@@ -187,8 +187,7 @@ scoped_ptr<base::ListValue> TranslateNetworkListToONC(
NetworkTypePattern pattern,
bool configured_only,
bool visible_only,
- int limit,
- bool debugging_properties) {
+ int limit) {
NetworkStateHandler::NetworkStateList network_states;
NetworkHandler::Get()->network_state_handler()->GetNetworkListByType(
pattern, configured_only, visible_only, limit, &network_states);
@@ -197,14 +196,6 @@ scoped_ptr<base::ListValue> TranslateNetworkListToONC(
for (const NetworkState* state : network_states) {
scoped_ptr<base::DictionaryValue> onc_dictionary =
TranslateNetworkStateToONC(state);
-
- if (debugging_properties) {
- onc_dictionary->SetBoolean("connectable", state->connectable());
- onc_dictionary->SetBoolean("visible", state->visible());
- onc_dictionary->SetString("profile_path", state->profile_path());
- onc_dictionary->SetString("service_path", state->path());
- }
-
network_properties_list->Append(onc_dictionary.release());
}
return network_properties_list.Pass();
diff --git a/chromeos/network/network_util.h b/chromeos/network/network_util.h
index f07fdaf..47cdcde 100644
--- a/chromeos/network/network_util.h
+++ b/chromeos/network/network_util.h
@@ -101,14 +101,12 @@ CHROMEOS_EXPORT scoped_ptr<base::DictionaryValue> TranslateNetworkStateToONC(
// |configured_only|, and |visible_only| to NetworkStateHandler::
// GetNetworkListByType(). Translates the result into a list of ONC
// dictionaries using TranslateShillServiceToONCPart. |limit| is used to limit
-// the number of results. If |debugging_properties| is true then also include
-// additional debugging properties (used in release code for chrome://network).
+// the number of results.
CHROMEOS_EXPORT scoped_ptr<base::ListValue> TranslateNetworkListToONC(
NetworkTypePattern pattern,
bool configured_only,
bool visible_only,
- int limit,
- bool debugging_properties);
+ int limit);
// Returns the Shill type corresponding to ONC |type| or an empty string if
// there is no match. Only valid for ethernet, wifi, wimax, cellular, and vpn.