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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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/WebPepperSocket.cpp
diff --git a/third_party/WebKit/Source/web/WebPepperSocket.cpp b/third_party/WebKit/Source/web/WebPepperSocket.cpp
index fccbba09e6d6979d0d19d6d261b035b5b95981c2..65ce079f2f73fb25e31dfae8c6efd9d2e2521b10 100644
--- a/third_party/WebKit/Source/web/WebPepperSocket.cpp
+++ b/third_party/WebKit/Source/web/WebPepperSocket.cpp
@@ -31,6 +31,8 @@
#include "public/web/WebPepperSocket.h"
#include "web/WebPepperSocketImpl.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -39,10 +41,10 @@ WebPepperSocket* WebPepperSocket::create(const WebDocument& document, WebPepperS
if (!client)
return 0;
- OwnPtr<WebPepperSocketImpl> websocket = adoptPtr(new WebPepperSocketImpl(document, client));
+ std::unique_ptr<WebPepperSocketImpl> websocket = wrapUnique(new WebPepperSocketImpl(document, client));
if (websocket && websocket->isNull())
return 0;
- return websocket.leakPtr();
+ return websocket.release();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | third_party/WebKit/Source/web/WebPepperSocketChannelClientProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698