| Index: third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| index 4b3b949fbb0a88f6e9253b5054b42b2980f3b38a..aaef92f50cae7aa8909febe935daf787dcc61ed4 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/XSSAuditorDelegate.cpp
|
| @@ -90,12 +90,12 @@ PassRefPtr<EncodedFormData> XSSAuditorDelegate::generateViolationReport(const XS
|
| httpBody = formData->flattenToString();
|
| }
|
|
|
| - RefPtr<JSONObject> reportDetails = JSONObject::create();
|
| + std::unique_ptr<JSONObject> reportDetails = JSONObject::create();
|
| reportDetails->setString("request-url", xssInfo.m_originalURL);
|
| reportDetails->setString("request-body", httpBody);
|
|
|
| - RefPtr<JSONObject> reportObject = JSONObject::create();
|
| - reportObject->setObject("xss-report", reportDetails.release());
|
| + std::unique_ptr<JSONObject> reportObject = JSONObject::create();
|
| + reportObject->setObject("xss-report", std::move(reportDetails));
|
|
|
| return EncodedFormData::create(reportObject->toJSONString().utf8().data());
|
| }
|
|
|