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

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

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

Powered by Google App Engine
This is Rietveld 408576698