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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.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/core/html/HTMLTextFormControlElementTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
index 76cad26731b69b9f34da998fdfa968e3785e60bf..93529b68a07debdec44d14427a5ff1cb3821ca3d 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp
@@ -21,8 +21,7 @@
#include "core/testing/DummyPageHolder.h"
#include "platform/testing/UnitTestHelpers.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
namespace blink {
@@ -39,8 +38,8 @@ protected:
void forceLayoutFlag();
private:
- std::unique_ptr<SpellCheckerClient> m_spellCheckerClient;
- std::unique_ptr<DummyPageHolder> m_dummyPageHolder;
+ OwnPtr<SpellCheckerClient> m_spellCheckerClient;
+ OwnPtr<DummyPageHolder> m_dummyPageHolder;
Persistent<HTMLDocument> m_document;
Persistent<HTMLTextFormControlElement> m_textControl;
@@ -63,7 +62,7 @@ void HTMLTextFormControlElementTest::SetUp()
{
Page::PageClients pageClients;
fillWithEmptyClients(pageClients);
- m_spellCheckerClient = wrapUnique(new DummySpellCheckerClient);
+ m_spellCheckerClient = adoptPtr(new DummySpellCheckerClient);
pageClients.spellCheckerClient = m_spellCheckerClient.get();
m_dummyPageHolder = DummyPageHolder::create(IntSize(800, 600), &pageClients);

Powered by Google App Engine
This is Rietveld 408576698