| Index: remoting/host/plugin/host_script_object.cc
|
| diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
|
| index f7f64c8a1d613734c782fb6fa056860b62d9e3df..5743a96c9fde4ce204fb9846061719f7f7b6db7e 100644
|
| --- a/remoting/host/plugin/host_script_object.cc
|
| +++ b/remoting/host/plugin/host_script_object.cc
|
| @@ -678,7 +678,8 @@ bool HostNPScriptObject::UpdateDaemonConfig(const NPVariant* args,
|
| }
|
|
|
| std::string config_str = StringFromNPVariant(args[0]);
|
| - scoped_ptr<base::Value> config(base::JSONReader::Read(config_str, true));
|
| + scoped_ptr<base::Value> config(
|
| + base::JSONReader::Read(config_str, base::JSON_ALLOW_TRAILING_COMMAS));
|
| if (config_str.empty() || !config.get() ||
|
| !config->IsType(base::Value::TYPE_DICTIONARY)) {
|
| SetException("updateDaemonConfig: bad config parameter");
|
| @@ -739,7 +740,8 @@ bool HostNPScriptObject::StartDaemon(const NPVariant* args,
|
| }
|
|
|
| std::string config_str = StringFromNPVariant(args[0]);
|
| - scoped_ptr<base::Value> config(base::JSONReader::Read(config_str, true));
|
| + scoped_ptr<base::Value> config(
|
| + base::JSONReader::Read(config_str, base::JSON_ALLOW_TRAILING_COMMAS));
|
| if (config_str.empty() || !config.get() ||
|
| !config->IsType(base::Value::TYPE_DICTIONARY)) {
|
| SetException("updateDaemonConfig: bad config parameter");
|
|
|