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

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

Powered by Google App Engine
This is Rietveld 408576698