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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp

Issue 1979493002: Remove OwnPtr::release() calls in bindings/. (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
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
index 0863f1e53c43070cab042f5983a65e00b6edcc40..f31318c5141e20569bef2d25c149f37b9d105d4d 100644
--- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp
@@ -138,7 +138,7 @@ void SerializedScriptValue::transferImageBitmaps(v8::Isolate* isolate, const Ima
visited.add(imageBitmaps[i]);
contents->append(imageBitmaps[i]->transfer());
}
- m_imageBitmapContentsArray = contents.release();
+ m_imageBitmapContentsArray = std::move(contents);
}
void SerializedScriptValue::transferOffscreenCanvas(v8::Isolate* isolate, const OffscreenCanvasArray& offscreenCanvases, ExceptionState& exceptionState)
@@ -212,7 +212,7 @@ void SerializedScriptValue::transferArrayBuffers(v8::Isolate* isolate, const Arr
}
}
- m_arrayBufferContentsArray = contents.release();
+ m_arrayBufferContentsArray = std::move(contents);
}
SerializedScriptValue::SerializedScriptValue(const String& wireData)
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698