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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.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/WebEmbeddedWorkerImplTest.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
index bb6f205f68f945d14899edc483885718b2407484..8b2cea6fbc00507369a082a6ad6a12c5fd2091b2 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImplTest.cpp
@@ -16,8 +16,6 @@
#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 {
@@ -63,7 +61,7 @@ protected:
void SetUp() override
{
m_mockClient = new MockServiceWorkerContextClient();
- m_worker = wrapUnique(WebEmbeddedWorker::create(m_mockClient, nullptr));
+ m_worker = adoptPtr(WebEmbeddedWorker::create(m_mockClient, nullptr));
WebURL scriptURL = URLTestHelpers::toKURL("https://www.example.com/sw.js");
WebURLResponse response;
@@ -87,7 +85,7 @@ protected:
WebEmbeddedWorkerStartData m_startData;
MockServiceWorkerContextClient* m_mockClient;
- std::unique_ptr<WebEmbeddedWorker> m_worker;
+ OwnPtr<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