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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.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/WebEmbeddedWorkerImplTest.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
index 8b2cea6fbc00507369a082a6ad6a12c5fd2091b2..bb6f205f68f945d14899edc483885718b2407484 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
@@ -16,6 +16,8 @@
#include "public/web/modules/serviceworker/WebServiceWorkerContextClient.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
namespace {
@@ -61,7 +63,7 @@ protected:
void SetUp() override
{
m_mockClient = new MockServiceWorkerContextClient();
- m_worker = adoptPtr(WebEmbeddedWorker::create(m_mockClient, nullptr));
+ m_worker = wrapUnique(WebEmbeddedWorker::create(m_mockClient, nullptr));
WebURL scriptURL = URLTestHelpers::toKURL("https://www.example.com/sw.js");
WebURLResponse response;
@@ -85,7 +87,7 @@ protected:
WebEmbeddedWorkerStartData m_startData;
MockServiceWorkerContextClient* m_mockClient;
- OwnPtr<WebEmbeddedWorker> m_worker;
+ std::unique_ptr<WebEmbeddedWorker> m_worker;
};
} // namespace
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698