| 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
|
|
|