Remove raw base::DictionaryValue::Set

https://codereview.chromium.org/2911033002
This commit is contained in:
Aleksei Kuzmin 2017-08-12 20:27:48 +03:00 committed by Cheng Zhao
parent cf00fc0661
commit 2c063f93ff
5 changed files with 20 additions and 12 deletions

View file

@ -10,6 +10,7 @@
#include "atom/common/native_mate_converters/callback.h"
#include "atom/common/native_mate_converters/value_converter.h"
#include "base/json/json_writer.h"
#include "base/memory/ptr_util.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/web_contents.h"
#include "native_mate/dictionary.h"
@ -143,7 +144,7 @@ void Debugger::SendCommand(mate::Arguments* args) {
request.SetInteger("id", request_id);
request.SetString("method", method);
if (!command_params.empty())
request.Set("params", command_params.DeepCopy());
request.Set("params", base::WrapUnique(command_params.DeepCopy()));
std::string json_args;
base::JSONWriter::Write(request, &json_args);