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

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.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
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index 7f0d8513e892d31ebe5231379c46b17b209acd18..cc807ef339f5852e67aefaa62574c21a53d0981e 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -164,7 +164,7 @@ class XMLHttpRequest::BlobLoader final : public GarbageCollectedFinalized<XMLHtt
public:
static BlobLoader* create(XMLHttpRequest* xhr, PassRefPtr<BlobDataHandle> handle)
{
- return new BlobLoader(xhr, handle);
+ return new BlobLoader(xhr, std::move(handle));
}
// FileReaderLoaderClient functions.
@@ -198,7 +198,7 @@ private:
: m_xhr(xhr)
, m_loader(FileReaderLoader::create(FileReaderLoader::ReadByClient, this))
{
- m_loader->start(m_xhr->getExecutionContext(), handle);
+ m_loader->start(m_xhr->getExecutionContext(), std::move(handle));
}
Member<XMLHttpRequest> m_xhr;
@@ -912,7 +912,7 @@ void XMLHttpRequest::createRequest(PassRefPtr<EncodedFormData> httpBody, Excepti
if (httpBody) {
ASSERT(m_method != HTTPNames::GET);
ASSERT(m_method != HTTPNames::HEAD);
- request.setHTTPBody(httpBody);
+ request.setHTTPBody(std::move(httpBody));
}
if (m_requestHeaders.size() > 0)
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkletGlobalScope.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698