refactor: replace base::Value::DeepCopy and CreateDeepCopy with Clone (#14420)

This commit is contained in:
Milan Burda 2018-09-03 00:38:35 +02:00 committed by Charles Kerr
parent 8e1452d316
commit aa01a7337c
2 changed files with 3 additions and 2 deletions

View file

@ -131,7 +131,8 @@ void Debugger::SendCommand(mate::Arguments* args) {
request.SetInteger("id", request_id);
request.SetString("method", method);
if (!command_params.empty())
request.Set("params", base::WrapUnique(command_params.DeepCopy()));
request.Set("params",
base::Value::ToUniquePtrValue(command_params.Clone()));
std::string json_args;
base::JSONWriter::Write(request, &json_args);