Index: headless/lib/browser/headless_devtools_client_impl.cc |
diff --git a/headless/lib/browser/headless_devtools_client_impl.cc b/headless/lib/browser/headless_devtools_client_impl.cc |
index ff0c2aaca221a468cf0186ce927028ea8a703793..ca315fa14a403cfd0b876dbb9653ec73591ac374 100644 |
--- a/headless/lib/browser/headless_devtools_client_impl.cc |
+++ b/headless/lib/browser/headless_devtools_client_impl.cc |
@@ -129,7 +129,7 @@ bool HeadlessDevToolsClientImpl::DispatchMessageReply( |
if (message_dict.GetDictionary("result", &result_dict)) { |
callback.callback_with_result.Run(*result_dict); |
} else if (message_dict.GetDictionary("error", &result_dict)) { |
- std::unique_ptr<base::Value> null_value = base::Value::CreateNullValue(); |
+ auto null_value = base::MakeUnique<base::Value>(); |
DLOG(ERROR) << "Error in method call result: " << *result_dict; |
callback.callback_with_result.Run(*null_value); |
} else { |