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

Unified Diff: chrome/browser/ui/webui/chromeos/network_config_message_handler.cc

Issue 509643003: Use GetManagedProperties in InternetOptionsHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_8a
Patch Set: Created 6 years, 4 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
Index: chrome/browser/ui/webui/chromeos/network_config_message_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/network_config_message_handler.cc b/chrome/browser/ui/webui/chromeos/network_config_message_handler.cc
index b4c194abc0554d34fedf0b5b11109d28c4a61f91..98318242c9f12b4eaeb5aa533371f4d9f6519888 100644
--- a/chrome/browser/ui/webui/chromeos/network_config_message_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/network_config_message_handler.cc
@@ -206,6 +206,15 @@ void NetworkConfigMessageHandler::GetShillPropertiesSuccess(
base::DictionaryValue* device_dictionary =
device_state->properties().DeepCopy();
dictionary_copy->Set(shill::kDeviceProperty, device_dictionary);
+
+ // Convert IPConfig dictionary to a ListValue.
+ base::ListValue* ip_configs = new base::ListValue;
+ for (base::DictionaryValue::Iterator iter(device_state->ip_configs());
+ !iter.IsAtEnd(); iter.Advance()) {
+ ip_configs->Append(iter.value().DeepCopy());
+ }
+ device_dictionary->SetWithoutPathExpansion(
+ shill::kIPConfigsProperty, ip_configs);
}
base::ListValue return_arg_list;

Powered by Google App Engine
This is Rietveld 408576698