Index: third_party/WebKit/Source/wtf/text/StringImpl.cpp |
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.cpp b/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
index c9c1a14b885bbf01ad1efb2bf7058f4da0b2f04f..77ddb659b1e7524b56b8cb465b98ade6258526b1 100644 |
--- a/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.cpp |
@@ -26,8 +26,7 @@ |
#include "wtf/DynamicAnnotations.h" |
#include "wtf/LeakAnnotations.h" |
-#include "wtf/OwnPtr.h" |
-#include "wtf/PassOwnPtr.h" |
+#include "wtf/PtrUtil.h" |
#include "wtf/StdLibExtras.h" |
#include "wtf/allocator/PartitionAlloc.h" |
#include "wtf/allocator/Partitions.h" |
@@ -37,6 +36,7 @@ |
#include "wtf/text/StringHash.h" |
#include "wtf/text/StringToNumber.h" |
#include <algorithm> |
+#include <memory> |
#include <unicode/translit.h> |
#include <unicode/unistr.h> |
@@ -793,8 +793,8 @@ PassRefPtr<StringImpl> StringImpl::upper(const AtomicString& localeIdentifier) |
// TODO(jungshik): Cache transliterator if perf penaly warrants it for Greek. |
UErrorCode status = U_ZERO_ERROR; |
- OwnPtr<icu::Transliterator> translit = |
- adoptPtr(icu::Transliterator::createInstance(transliteratorId, UTRANS_FORWARD, status)); |
+ std::unique_ptr<icu::Transliterator> translit = |
+ wrapUnique(icu::Transliterator::createInstance(transliteratorId, UTRANS_FORWARD, status)); |
if (U_FAILURE(status)) |
return upper(); |