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

Unified Diff: third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp

Issue 1978173002: Remove OwnPtr::release() calls in modules/ (part 2). (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/mediarecorder/MediaRecorder.cpp
diff --git a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
index 51c383ca0f56605898626cff6d80d9845fdf8199..36e56a362adcc4bbeb8afa1d6f1a2694c26d3748 100644
--- a/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
+++ b/third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp
@@ -306,7 +306,7 @@ void MediaRecorder::writeData(const char* data, size_t length, bool lastInSlice)
// Cache |m_blobData->length()| before release()ng it.
const long long blobDataLength = m_blobData->length();
- createBlobEvent(Blob::create(BlobDataHandle::create(m_blobData.release(), blobDataLength)));
+ createBlobEvent(Blob::create(BlobDataHandle::create(std::move(m_blobData), blobDataLength)));
}
void MediaRecorder::onError(const WebString& message)

Powered by Google App Engine
This is Rietveld 408576698