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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge. 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/bindings/core/v8/DocumentWriteEvaluator.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
index b7f191410922b03e77586dd3059cdf573aebb795..1dffc3e7382819650a9dadf95c6913546c1fdada 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
@@ -11,6 +11,8 @@
#include "core/html/parser/CompactHTMLToken.h"
#include "core/html/parser/HTMLToken.h"
#include "core/html/parser/HTMLTokenizer.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -26,9 +28,9 @@ public:
// For unit testing.
DocumentWriteEvaluator(const String& pathName, const String& hostName, const String& protocol, const String& userAgent);
- static PassOwnPtr<DocumentWriteEvaluator> create(const Document& document)
+ static std::unique_ptr<DocumentWriteEvaluator> create(const Document& document)
{
- return adoptPtr(new DocumentWriteEvaluator(document));
+ return wrapUnique(new DocumentWriteEvaluator(document));
}
virtual ~DocumentWriteEvaluator();

Powered by Google App Engine
This is Rietveld 408576698