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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.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/presentation/PresentationConnection.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
index 44f812985432c570fbdfa19ffe423d5b6d8eb051..70c9c53a1ce1b9b6184d7825d5a2609e8aaffc23 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp
@@ -357,7 +357,7 @@ void PresentationConnection::didReceiveBinaryMessage(const uint8_t* data, size_t
case BinaryTypeBlob: {
OwnPtr<BlobData> blobData = BlobData::create();
blobData->appendBytes(data, length);
- Blob* blob = Blob::create(BlobDataHandle::create(blobData.release(), length));
+ Blob* blob = Blob::create(BlobDataHandle::create(std::move(blobData), length));
dispatchEvent(MessageEvent::create(blob));
return;
}

Powered by Google App Engine
This is Rietveld 408576698