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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.cpp

Issue 1983783002: Remove OwnPtr::release() calls in modules/ (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/modules/fetch/FetchFormDataConsumerHandle.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.cpp b/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.cpp
index b175a7bd7e65deb4533ed6b80c675cbabff9765c..36bc17541129e8857e64f9cbd6ab2bf6f9ca396c 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.cpp
@@ -65,7 +65,7 @@ public:
blobData->appendBytes(m_flattenFormData.data(), m_flattenFormData.size());
m_flattenFormData.clear();
auto length = blobData->length();
- return BlobDataHandle::create(blobData.release(), length);
+ return BlobDataHandle::create(std::move(blobData), length);
}
PassRefPtr<EncodedFormData> drainFormData()
@@ -268,9 +268,9 @@ private:
auto size = blobData->length();
if (factory) {
// For testing
- m_handle = FetchBlobDataConsumerHandle::create(executionContext, BlobDataHandle::create(blobData.release(), size), factory);
+ m_handle = FetchBlobDataConsumerHandle::create(executionContext, BlobDataHandle::create(std::move(blobData), size), factory);
} else {
- m_handle = FetchBlobDataConsumerHandle::create(executionContext, BlobDataHandle::create(blobData.release(), size));
+ m_handle = FetchBlobDataConsumerHandle::create(executionContext, BlobDataHandle::create(std::move(blobData), size));
}
// It is important to initialize |m_formData| here, because even
// read-only operations may make the form data unsharable with implicit

Powered by Google App Engine
This is Rietveld 408576698