Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: third_party/WebKit/Source/core/loader/PingLoader.cpp

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/PingLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
index 7e4fcb5c7ca55a0607566354859e7eec8666cf8f..e8f3a53b7b81df16334372cd7f123d18a1b073a3 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -471,7 +471,7 @@ void PingLoader::sendViolationReport(LocalFrame* frame, const KURL& reportURL, P
ResourceRequest request(reportURL);
request.setHTTPMethod(HTTPNames::POST);
request.setHTTPContentType(type == ContentSecurityPolicyViolationReport ? "application/csp-report" : "application/json");
- request.setHTTPBody(report);
+ request.setHTTPBody(std::move(report));
finishPingRequestInitialization(request, frame, WebURLRequest::RequestContextPing);
StoredCredentials credentialsAllowed = SecurityOrigin::create(reportURL)->isSameSchemeHostPort(frame->document()->getSecurityOrigin()) ? AllowStoredCredentials : DoNotAllowStoredCredentials;

Powered by Google App Engine
This is Rietveld 408576698