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

Unified Diff: third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.h

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/FormDataBytesConsumer.h
diff --git a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.h b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.h
index 7ed6ee4286af209d52c1f3b757e9b0d391d9da89..6a45d075b46253b2a2a1cfcd25729e1bcb534eb0 100644
--- a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.h
+++ b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.h
@@ -29,7 +29,8 @@ class FormDataBytesConsumer final : public BytesConsumer {
ExecutionContext* executionContext,
PassRefPtr<EncodedFormData> formData,
BytesConsumer* consumer) {
- return new FormDataBytesConsumer(executionContext, formData, consumer);
+ return new FormDataBytesConsumer(executionContext, std::move(formData),
+ consumer);
}
// BytesConsumer implementation

Powered by Google App Engine
This is Rietveld 408576698