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

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

Issue 2437883002: Made PassRefPtr move only and replaced new copies with moves. (Closed)
Patch Set: Removed stale comment Created 4 years, 2 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/BlobBytesConsumer.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp b/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp
index 06a8eb64827250e09f72e4b81384b3609cb4a634..19087874f63b0ed3d0c6747cf43a6451fddfe2af 100644
--- a/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp
@@ -36,7 +36,7 @@ BlobBytesConsumer::BlobBytesConsumer(ExecutionContext* executionContext,
BlobBytesConsumer::BlobBytesConsumer(ExecutionContext* executionContext,
PassRefPtr<BlobDataHandle> blobDataHandle)
- : BlobBytesConsumer(executionContext, blobDataHandle, nullptr) {}
+ : BlobBytesConsumer(executionContext, std::move(blobDataHandle), nullptr) {}
BlobBytesConsumer::~BlobBytesConsumer() {}
@@ -265,7 +265,8 @@ BlobBytesConsumer* BlobBytesConsumer::createForTesting(
ExecutionContext* executionContext,
PassRefPtr<BlobDataHandle> blobDataHandle,
ThreadableLoader* loader) {
- return new BlobBytesConsumer(executionContext, blobDataHandle, loader);
+ return new BlobBytesConsumer(executionContext, std::move(blobDataHandle),
+ loader);
}
ThreadableLoader* BlobBytesConsumer::createLoader() {

Powered by Google App Engine
This is Rietveld 408576698