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

Unified Diff: third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.h

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/SharedWorkerRepositoryClientImpl.h
diff --git a/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.h b/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.h
index ce912159d32dc462006268e5ab29a94d6c604a57..fbc621d5e3d4175f44fa4b145dfef67036dfe036 100644
--- a/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.h
+++ b/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.h
@@ -33,8 +33,9 @@
#include "core/workers/SharedWorkerRepositoryClient.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -44,9 +45,9 @@ class SharedWorkerRepositoryClientImpl final : public SharedWorkerRepositoryClie
WTF_MAKE_NONCOPYABLE(SharedWorkerRepositoryClientImpl);
USING_FAST_MALLOC(SharedWorkerRepositoryClientImpl);
public:
- static PassOwnPtr<SharedWorkerRepositoryClientImpl> create(WebSharedWorkerRepositoryClient* client)
+ static std::unique_ptr<SharedWorkerRepositoryClientImpl> create(WebSharedWorkerRepositoryClient* client)
{
- return adoptPtr(new SharedWorkerRepositoryClientImpl(client));
+ return wrapUnique(new SharedWorkerRepositoryClientImpl(client));
}
~SharedWorkerRepositoryClientImpl() override { }

Powered by Google App Engine
This is Rietveld 408576698