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