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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 1dffc3e7382819650a9dadf95c6913546c1fdada..b7f191410922b03e77586dd3059cdf573aebb795 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
+++ b/third_party/WebKit/Source/bindings/core/v8/DocumentWriteEvaluator.h
@@ -11,8 +11,6 @@
#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 {
@@ -28,9 +26,9 @@ public:
// For unit testing.
DocumentWriteEvaluator(const String& pathName, const String& hostName, const String& protocol, const String& userAgent);
- static std::unique_ptr<DocumentWriteEvaluator> create(const Document& document)
+ static PassOwnPtr<DocumentWriteEvaluator> create(const Document& document)
{
- return wrapUnique(new DocumentWriteEvaluator(document));
+ return adoptPtr(new DocumentWriteEvaluator(document));
}
virtual ~DocumentWriteEvaluator();
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp ('k') | third_party/WebKit/Source/bindings/core/v8/Microtask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698