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 |
}; |