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

Unified Diff: third_party/WebKit/public/platform/WebTaskRunner.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
« 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 2fee34c282bac899ed11747e000304ebdc36392d..81ac626419d6f7dca2a20be4939f4e49f146fc97 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -9,8 +9,6 @@
#ifdef INSIDE_BLINK
#include "wtf/Functional.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
#endif
namespace blink {
@@ -68,9 +66,9 @@ public:
void postTask(const WebTraceLocation&, std::unique_ptr<SameThreadClosure>);
void postDelayedTask(const WebTraceLocation&, std::unique_ptr<SameThreadClosure>, long long delayMs);
- std::unique_ptr<WebTaskRunner> adoptClone()
+ PassOwnPtr<WebTaskRunner> adoptClone()
{
- return wrapUnique(clone());
+ return adoptPtr(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