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

Unified Diff: third_party/WebKit/Source/wtf/text/TextPosition.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/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()) {
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextPosition.h ('k') | third_party/WebKit/Source/wtf/text/icu/CollatorICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698