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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 65ce079f2f73fb25e31dfae8c6efd9d2e2521b10..fccbba09e6d6979d0d19d6d261b035b5b95981c2 100644
--- a/third_party/WebKit/Source/web/WebPepperSocket.cpp
+++ b/third_party/WebKit/Source/web/WebPepperSocket.cpp
@@ -31,8 +31,6 @@
#include "public/web/WebPepperSocket.h"
#include "web/WebPepperSocketImpl.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
namespace blink {
@@ -41,10 +39,10 @@ WebPepperSocket* WebPepperSocket::create(const WebDocument& document, WebPepperS
if (!client)
return 0;
- std::unique_ptr<WebPepperSocketImpl> websocket = wrapUnique(new WebPepperSocketImpl(document, client));
+ OwnPtr<WebPepperSocketImpl> websocket = adoptPtr(new WebPepperSocketImpl(document, client));
if (websocket && websocket->isNull())
return 0;
- return websocket.release();
+ return websocket.leakPtr();
}
} // 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