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

Unified Diff: third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.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/core/dom/IncrementLoadEventDelayCount.cpp
diff --git a/third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.cpp b/third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.cpp
index dfb887d15dad4ed33ed767758dabb95d1e9916e0..f795010670ac4b7579276dd425984b429722f559 100644
--- a/third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.cpp
+++ b/third_party/WebKit/Source/core/dom/IncrementLoadEventDelayCount.cpp
@@ -5,12 +5,14 @@
#include "core/dom/IncrementLoadEventDelayCount.h"
#include "core/dom/Document.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
-PassOwnPtr<IncrementLoadEventDelayCount> IncrementLoadEventDelayCount::create(Document& document)
+std::unique_ptr<IncrementLoadEventDelayCount> IncrementLoadEventDelayCount::create(Document& document)
{
- return adoptPtr(new IncrementLoadEventDelayCount(document));
+ return wrapUnique(new IncrementLoadEventDelayCount(document));
}
IncrementLoadEventDelayCount::IncrementLoadEventDelayCount(Document& document)

Powered by Google App Engine
This is Rietveld 408576698