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

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: 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
« no previous file with comments | « third_party/WebKit/public/platform/WebScrollbar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
};
« no previous file with comments | « third_party/WebKit/public/platform/WebScrollbar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698