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

Unified Diff: third_party/WebKit/public/platform/WebTaskRunner.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; 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/public/platform/WebTaskRunner.h
diff --git a/third_party/WebKit/public/platform/WebTaskRunner.h b/third_party/WebKit/public/platform/WebTaskRunner.h
index 81ac626419d6f7dca2a20be4939f4e49f146fc97..2fee34c282bac899ed11747e000304ebdc36392d 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -9,6 +9,8 @@
#ifdef INSIDE_BLINK
#include "wtf/Functional.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
#endif
namespace blink {
@@ -66,9 +68,9 @@ public:
void postTask(const WebTraceLocation&, std::unique_ptr<SameThreadClosure>);
void postDelayedTask(const WebTraceLocation&, std::unique_ptr<SameThreadClosure>, long long delayMs);
- PassOwnPtr<WebTaskRunner> adoptClone()
+ std::unique_ptr<WebTaskRunner> adoptClone()
{
- return adoptPtr(clone());
+ return wrapUnique(clone());
}
#endif
};

Powered by Google App Engine
This is Rietveld 408576698