Index: extensions/browser/api/networking_private/networking_private_api.cc |
diff --git a/extensions/browser/api/networking_private/networking_private_api.cc b/extensions/browser/api/networking_private/networking_private_api.cc |
index 92270e905f94cd65367e26bb4c6afa04c6f2a1e1..8a8da965ede9961a41d1d83ca91f5da104f6121c 100644 |
--- a/extensions/browser/api/networking_private/networking_private_api.cc |
+++ b/extensions/browser/api/networking_private/networking_private_api.cc |
@@ -146,8 +146,10 @@ bool NetworkingPrivateSetPropertiesFunction::RunAsync() { |
private_api::SetProperties::Params::Create(*args_); |
EXTENSION_FUNCTION_VALIDATE(params); |
+ // TODO(stevenjb): Switch this back to params->properties.ToValue() once we |
+ // introduce types to the IDL. crbug.com/470262. |
scoped_ptr<base::DictionaryValue> properties_dict( |
- params->properties.ToValue()); |
+ params->properties.additional_properties.DeepCopy()); |
GetDelegate(browser_context()) |
->SetProperties( |
@@ -178,8 +180,10 @@ bool NetworkingPrivateCreateNetworkFunction::RunAsync() { |
private_api::CreateNetwork::Params::Create(*args_); |
EXTENSION_FUNCTION_VALIDATE(params); |
+ // TODO(stevenjb): Switch this back to params->properties.ToValue() once we |
+ // introduce types to the IDL. crbug.com/470262. |
scoped_ptr<base::DictionaryValue> properties_dict( |
- params->properties.ToValue()); |
+ params->properties.additional_properties.DeepCopy()); |
GetDelegate(browser_context()) |
->CreateNetwork( |