| Index: third_party/WebKit/Source/modules/fetch/DataConsumerTeeTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerTeeTest.cpp b/third_party/WebKit/Source/modules/fetch/DataConsumerTeeTest.cpp
|
| index fb261c504f31cf1306427155a1c1e22c4968098e..e80ffd7ce032db9080bd725d087f7a99903134f2 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/DataConsumerTeeTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/fetch/DataConsumerTeeTest.cpp
|
| @@ -7,7 +7,6 @@
|
| #include "core/testing/DummyPageHolder.h"
|
| #include "core/testing/NullExecutionContext.h"
|
| #include "modules/fetch/DataConsumerHandleTestUtil.h"
|
| -#include "platform/Task.h"
|
| #include "platform/ThreadSafeFunctional.h"
|
| #include "platform/WaitableEvent.h"
|
| #include "platform/WebThreadSupportingGC.h"
|
| @@ -58,7 +57,7 @@ public:
|
| {
|
| m_thread = adoptPtr(new Thread("src thread", Thread::WithExecutionContext));
|
| m_waitableEvent = adoptPtr(new WaitableEvent());
|
| - m_thread->thread()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&TeeCreationThread<Handle>::runInternal, AllowCrossThreadAccess(this), src, AllowCrossThreadAccess(dest1), AllowCrossThreadAccess(dest2))));
|
| + m_thread->thread()->postTask(BLINK_FROM_HERE, threadSafeBind(&TeeCreationThread<Handle>::runInternal, AllowCrossThreadAccess(this), src, AllowCrossThreadAccess(dest1), AllowCrossThreadAccess(dest2)));
|
| m_waitableEvent->wait();
|
| }
|
|
|
| @@ -213,7 +212,7 @@ TEST(DataConsumerTeeTest, StopSource)
|
|
|
| // We can pass a raw pointer because the subsequent |wait| calls ensure
|
| // t->thread() is alive.
|
| - t->thread()->thread()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(postStop, AllowCrossThreadAccess(t->thread()))));
|
| + t->thread()->thread()->postTask(BLINK_FROM_HERE, threadSafeBind(postStop, AllowCrossThreadAccess(t->thread())));
|
|
|
| OwnPtr<HandleReadResult> res1 = r1.wait();
|
| OwnPtr<HandleReadResult> res2 = r2.wait();
|
|
|