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

Unified Diff: extensions/browser/api/networking_private/networking_private_api.cc

Issue 1038873004: Convert networkingPrivate to use IDL format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_470282_onc_cellular_technology
Patch Set: Address feedback Created 5 years, 9 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 | « no previous file | extensions/browser/api/networking_private/networking_private_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | extensions/browser/api/networking_private/networking_private_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698