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

Unified Diff: third_party/WebKit/Source/platform/heap/GCTaskRunner.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
Index: third_party/WebKit/Source/platform/heap/GCTaskRunner.h
diff --git a/third_party/WebKit/Source/platform/heap/GCTaskRunner.h b/third_party/WebKit/Source/platform/heap/GCTaskRunner.h
index d2a37098854e979c6b2e68ad5b454a62c791d05b..8ef05d6854fb04fd54d7bb1d1aa49667e2d8dc72 100644
--- a/third_party/WebKit/Source/platform/heap/GCTaskRunner.h
+++ b/third_party/WebKit/Source/platform/heap/GCTaskRunner.h
@@ -36,6 +36,8 @@
#include "public/platform/WebTaskRunner.h"
#include "public/platform/WebThread.h"
#include "public/platform/WebTraceLocation.h"
+#include "wtf/PtrUtil.h"
+#include <memory>
namespace blink {
@@ -100,11 +102,11 @@ class GCTaskRunner final {
USING_FAST_MALLOC(GCTaskRunner);
public:
explicit GCTaskRunner(WebThread* thread)
- : m_gcTaskObserver(adoptPtr(new GCTaskObserver))
+ : m_gcTaskObserver(wrapUnique(new GCTaskObserver))
, m_thread(thread)
{
m_thread->addTaskObserver(m_gcTaskObserver.get());
- ThreadState::current()->addInterruptor(adoptPtr(new MessageLoopInterruptor(thread->getWebTaskRunner())));
+ ThreadState::current()->addInterruptor(wrapUnique(new MessageLoopInterruptor(thread->getWebTaskRunner())));
}
~GCTaskRunner()
@@ -113,7 +115,7 @@ public:
}
private:
- OwnPtr<GCTaskObserver> m_gcTaskObserver;
+ std::unique_ptr<GCTaskObserver> m_gcTaskObserver;
WebThread* m_thread;
};
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/test/MockImageDecoder.h ('k') | third_party/WebKit/Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698