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

Unified Diff: third_party/WebKit/Source/platform/fonts/OrientationIterator.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/platform/fonts/OrientationIterator.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/OrientationIterator.cpp b/third_party/WebKit/Source/platform/fonts/OrientationIterator.cpp
index fe032209fc666ddd5986d5e7e7e086265764eeb9..2f40b001192b27244405eee051a63edbf9df9314 100644
--- a/third_party/WebKit/Source/platform/fonts/OrientationIterator.cpp
+++ b/third_party/WebKit/Source/platform/fonts/OrientationIterator.cpp
@@ -4,10 +4,12 @@
#include "OrientationIterator.h"
+#include "wtf/PtrUtil.h"
+
namespace blink {
OrientationIterator::OrientationIterator(const UChar* buffer, unsigned bufferSize, FontOrientation runOrientation)
- : m_utf16Iterator(adoptPtr(new UTF16TextIterator(buffer, bufferSize)))
+ : m_utf16Iterator(wrapUnique(new UTF16TextIterator(buffer, bufferSize)))
, m_bufferSize(bufferSize)
, m_atEnd(bufferSize == 0)
{

Powered by Google App Engine
This is Rietveld 408576698