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

Unified Diff: third_party/WebKit/Source/platform/exported/WebBlobData.cpp

Issue 2143323002: Remove WebPrivateOwnPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/platform/exported/WebFont.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/exported/WebBlobData.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebBlobData.cpp b/third_party/WebKit/Source/platform/exported/WebBlobData.cpp
index 942d2aecc4e855132d6c1547786b88abc0dc49f3..52aa5ca178615d3681e8e25f6751ab66ed951207 100644
--- a/third_party/WebKit/Source/platform/exported/WebBlobData.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebBlobData.cpp
@@ -42,7 +42,6 @@ WebBlobData::WebBlobData()
WebBlobData::~WebBlobData()
{
- m_private.reset(0);
}
size_t WebBlobData::itemCount() const
@@ -101,13 +100,13 @@ WebBlobData::WebBlobData(std::unique_ptr<BlobData> data)
WebBlobData& WebBlobData::operator=(std::unique_ptr<BlobData> data)
{
- m_private.reset(std::move(data));
+ m_private = std::move(data);
return *this;
}
WebBlobData::operator std::unique_ptr<BlobData>()
{
- return m_private.release();
+ return std::move(m_private);
}
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/exported/WebFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698