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

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

Issue 2308343002: Replaced PassRefPtr copites with moves in Source/modules. (Closed)
Patch Set: Created 4 years, 3 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/ReadableStreamDataConsumerHandle.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandle.cpp b/third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandle.cpp
index ca69f165054155930f38448de3f1a78276f13cf0..d6eb0cfe061d93cbac383f4cb25668ca3a512fc4 100644
--- a/third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandle.cpp
+++ b/third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandle.cpp
@@ -54,7 +54,7 @@ public:
public:
static v8::Local<v8::Function> createFunction(ScriptState* scriptState, PassRefPtr<ReadingContext> context)
{
- return (new OnFulfilled(scriptState, context))->bindToV8Function();
+ return (new OnFulfilled(scriptState, std::move(context)))->bindToV8Function();
}
ScriptValue call(ScriptValue v) override
@@ -94,7 +94,7 @@ public:
public:
static v8::Local<v8::Function> createFunction(ScriptState* scriptState, PassRefPtr<ReadingContext> context)
{
- return (new OnRejected(scriptState, context))->bindToV8Function();
+ return (new OnRejected(scriptState, std::move(context)))->bindToV8Function();
}
ScriptValue call(ScriptValue v) override

Powered by Google App Engine
This is Rietveld 408576698