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

Unified Diff: third_party/WebKit/Source/web/WebBlob.cpp

Issue 1984593002: Remove OwnPtr::release() calls in web/ & wtf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk. 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
Index: third_party/WebKit/Source/web/WebBlob.cpp
diff --git a/third_party/WebKit/Source/web/WebBlob.cpp b/third_party/WebKit/Source/web/WebBlob.cpp
index 70fa3b63abf865c4507fc0bd1d95c91306b11e0b..370a6b1026cc518437997f3714ea16269423ed6d 100644
--- a/third_party/WebKit/Source/web/WebBlob.cpp
+++ b/third_party/WebKit/Source/web/WebBlob.cpp
@@ -48,7 +48,7 @@ WebBlob WebBlob::createFromFile(const WebString& path, long long size)
{
OwnPtr<BlobData> blobData = BlobData::create();
blobData->appendFile(path, 0, size, invalidFileTime());
- return Blob::create(BlobDataHandle::create(blobData.release(), size));
+ return Blob::create(BlobDataHandle::create(std::move(blobData), size));
}
WebBlob WebBlob::fromV8Value(v8::Local<v8::Value> value)

Powered by Google App Engine
This is Rietveld 408576698