Chromium Code Reviews| 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()); |
|
pneubeck (no reviews)
2014/05/22 16:24:20
SetString -> SetStringWithoutPathExpansion
maybe
stevenjb
2014/05/23 21:50:59
So, when using a literal, I've not been bothering
|
| + std::string onc_source = (*it)->ui_data().GetONCSourceAsString(); |
| + if (!onc_source.empty()) |
| + onc_dictionary->SetString("onc_source", onc_source); |
|
pneubeck (no reviews)
2014/05/22 16:24:20
In network_ui.js you use "OncSource", maybe out of
stevenjb
2014/05/23 21:50:59
Done.
|
| + } |
| + |
| network_properties_list->Append(onc_dictionary.release()); |
| } |
| return network_properties_list.Pass(); |