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

Unified Diff: chromeos/network/network_util.cc

Issue 260083007: Replace chrome://network implementation with networkConfig API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Address feedback Created 6 years, 7 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 | « chromeos/network/network_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/network_util.cc
diff --git a/chromeos/network/network_util.cc b/chromeos/network/network_util.cc
index 8408c9a40c3a0d9d38cd9ff414220b1376993435..a9b35e13c0ba0ba94121503767cda001a31ae0b2 100644
--- a/chromeos/network/network_util.cc
+++ b/chromeos/network/network_util.cc
@@ -167,7 +167,8 @@ scoped_ptr<base::ListValue> TranslateNetworkListToONC(
NetworkTypePattern pattern,
bool configured_only,
bool visible_only,
- int limit) {
+ int limit,
+ bool debugging_properties) {
NetworkStateHandler::FavoriteStateList favorite_states;
NetworkHandler::Get()->network_state_handler()->GetFavoriteListByType(
pattern, configured_only, visible_only, limit, &favorite_states);
@@ -179,6 +180,14 @@ scoped_ptr<base::ListValue> TranslateNetworkListToONC(
++it) {
scoped_ptr<base::DictionaryValue> onc_dictionary =
TranslateFavoriteStateToONC(*it);
+
+ if (debugging_properties) {
+ onc_dictionary->SetString("profile_path", (*it)->profile_path());
+ std::string onc_source = (*it)->ui_data().GetONCSourceAsString();
+ if (!onc_source.empty())
+ onc_dictionary->SetString("onc_source", onc_source);
+ }
+
network_properties_list->Append(onc_dictionary.release());
}
return network_properties_list.Pass();
« no previous file with comments | « chromeos/network/network_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698