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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 20d5a455ef40219487ada936fd63ceec9fa900e9..8e0197044b71033f39cfd08f0d42173a1a5e01a6 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -145,10 +145,11 @@
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "public/platform/WebLayer.h"
#include "wtf/InstanceCounter.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
#include "wtf/dtoa.h"
#include "wtf/text/StringBuffer.h"
#include <deque>
+#include <memory>
#include <v8.h>
namespace blink {
@@ -1473,7 +1474,7 @@ AtomicString Internals::htmlNamespace()
Vector<AtomicString> Internals::htmlTags()
{
Vector<AtomicString> tags(HTMLNames::HTMLTagsCount);
- OwnPtr<const HTMLQualifiedName*[]> qualifiedNames = HTMLNames::getHTMLTags();
+ std::unique_ptr<const HTMLQualifiedName*[]> qualifiedNames = HTMLNames::getHTMLTags();
for (size_t i = 0; i < HTMLNames::HTMLTagsCount; ++i)
tags[i] = qualifiedNames[i]->localName();
return tags;
@@ -1487,7 +1488,7 @@ AtomicString Internals::svgNamespace()
Vector<AtomicString> Internals::svgTags()
{
Vector<AtomicString> tags(SVGNames::SVGTagsCount);
- OwnPtr<const SVGQualifiedName*[]> qualifiedNames = SVGNames::getSVGTags();
+ std::unique_ptr<const SVGQualifiedName*[]> qualifiedNames = SVGNames::getSVGTags();
for (size_t i = 0; i < SVGNames::SVGTagsCount; ++i)
tags[i] = qualifiedNames[i]->localName();
return tags;
@@ -2219,7 +2220,7 @@ void Internals::resetTypeAheadSession(HTMLSelectElement* select)
bool Internals::loseSharedGraphicsContext3D()
{
- OwnPtr<WebGraphicsContext3DProvider> sharedProvider = adoptPtr(Platform::current()->createSharedOffscreenGraphicsContext3DProvider());
+ std::unique_ptr<WebGraphicsContext3DProvider> sharedProvider = wrapUnique(Platform::current()->createSharedOffscreenGraphicsContext3DProvider());
if (!sharedProvider)
return false;
gpu::gles2::GLES2Interface* sharedGL = sharedProvider->contextGL();

Powered by Google App Engine
This is Rietveld 408576698