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

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

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 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/fetch/Response.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp
index 9ea416f84a27c0624ba9fd3b28b0144f80279038..75c1b4d67ef66843ed33967da2364e79ad298703 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -169,13 +169,13 @@ Response* Response::Create(ScriptState* script_state,
form_data->Boundary().data();
body_buffer = new BodyStreamBuffer(
script_state,
- new FormDataBytesConsumer(execution_context, form_data.Release()));
+ new FormDataBytesConsumer(execution_context, std::move(form_data)));
} else if (V8URLSearchParams::hasInstance(body, isolate)) {
RefPtr<EncodedFormData> form_data =
V8URLSearchParams::toImpl(body.As<v8::Object>())->ToEncodedFormData();
body_buffer = new BodyStreamBuffer(
script_state,
- new FormDataBytesConsumer(execution_context, form_data.Release()));
+ new FormDataBytesConsumer(execution_context, std::move(form_data)));
content_type = "application/x-www-form-urlencoded;charset=UTF-8";
} else if (ReadableStreamOperations::IsReadableStream(script_state,
body_value)) {
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.cpp ('k') | third_party/WebKit/Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698