| Index: third_party/WebKit/Source/wtf/text/TextPosition.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/text/TextPosition.cpp b/third_party/WebKit/Source/wtf/text/TextPosition.cpp
|
| index 2fc0207a997f4f0f0eb9ba36ecfbd41fee9dfdff..32a0314fa362860c0fbcb8c563cf0025b9796a55 100644
|
| --- a/third_party/WebKit/Source/wtf/text/TextPosition.cpp
|
| +++ b/third_party/WebKit/Source/wtf/text/TextPosition.cpp
|
| @@ -24,16 +24,15 @@
|
|
|
| #include "wtf/text/TextPosition.h"
|
|
|
| -#include "wtf/PtrUtil.h"
|
| +#include "wtf/PassOwnPtr.h"
|
| #include "wtf/StdLibExtras.h"
|
| #include <algorithm>
|
| -#include <memory>
|
|
|
| namespace WTF {
|
|
|
| -std::unique_ptr<Vector<unsigned>> lineEndings(const String& text)
|
| +PassOwnPtr<Vector<unsigned>> lineEndings(const String& text)
|
| {
|
| - std::unique_ptr<Vector<unsigned>> result(wrapUnique(new Vector<unsigned>()));
|
| + OwnPtr<Vector<unsigned>> result(adoptPtr(new Vector<unsigned>()));
|
|
|
| unsigned start = 0;
|
| while (start < text.length()) {
|
|
|