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

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

Issue 2622043003: Replaced RefPtr::release with std::move in Source/core. (Closed)
Patch Set: Created 3 years, 11 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 5e597c1f61d60f62421c672c0715be6baab01c4a..9a9fa8094d67fd34fe0383c76aaf29974f897208 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -125,7 +125,7 @@ class BeaconBlob final : public Beacon {
else
entityBody->appendBlob(m_data->uuid(), m_data->blobDataHandle());
- request.setHTTPBody(entityBody.release());
+ request.setHTTPBody(std::move(entityBody));
if (!m_contentType.isEmpty())
request.setHTTPContentType(m_contentType);
@@ -149,7 +149,7 @@ class BeaconDOMArrayBufferView final : public Beacon {
RefPtr<EncodedFormData> entityBody =
EncodedFormData::create(m_data->baseAddress(), m_data->byteLength());
- request.setHTTPBody(entityBody.release());
+ request.setHTTPBody(std::move(entityBody));
// FIXME: a reasonable choice, but not in the spec; should it give a
// default?

Powered by Google App Engine
This is Rietveld 408576698