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

Unified Diff: Source/modules/indexeddb/IDBRequestTest.cpp

Issue 336693006: Oilpan: convert remaining OwnPtr EventQueue uses. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « Source/core/dom/MainThreadTaskRunnerTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBRequestTest.cpp
diff --git a/Source/modules/indexeddb/IDBRequestTest.cpp b/Source/modules/indexeddb/IDBRequestTest.cpp
index d346d6c054fb79716aa3585e6731ca232b81fec3..a05fa05eee8047609a04224d52fb44a3472d1281 100644
--- a/Source/modules/indexeddb/IDBRequestTest.cpp
+++ b/Source/modules/indexeddb/IDBRequestTest.cpp
@@ -56,7 +56,16 @@ public:
class NullExecutionContext FINAL : public RefCountedWillBeGarbageCollectedFinalized<NullExecutionContext>, public ExecutionContext {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NullExecutionContext);
public:
- void trace(Visitor* visitor) { ExecutionContext::trace(visitor); }
+ NullExecutionContext();
+
+ virtual EventQueue* eventQueue() const OVERRIDE { return m_queue.get(); }
+
+ void trace(Visitor* visitor)
+ {
+ visitor->trace(m_queue);
+ ExecutionContext::trace(visitor);
+ }
+
#if !ENABLE(OILPAN)
using RefCounted<NullExecutionContext>::ref;
using RefCounted<NullExecutionContext>::deref;
@@ -64,15 +73,13 @@ public:
virtual void refExecutionContext() OVERRIDE { ref(); }
virtual void derefExecutionContext() OVERRIDE { deref(); }
#endif
- virtual EventQueue* eventQueue() const OVERRIDE { return m_queue.get(); }
- NullExecutionContext();
private:
- OwnPtr<EventQueue> m_queue;
+ OwnPtrWillBeMember<EventQueue> m_queue;
};
NullExecutionContext::NullExecutionContext()
- : m_queue(adoptPtr(new NullEventQueue()))
+ : m_queue(adoptPtrWillBeNoop(new NullEventQueue()))
{
}
« no previous file with comments | « Source/core/dom/MainThreadTaskRunnerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698