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

Unified Diff: Source/modules/fetch/DataConsumerHandleTestUtil.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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: Source/modules/fetch/DataConsumerHandleTestUtil.cpp
diff --git a/Source/modules/fetch/DataConsumerHandleTestUtil.cpp b/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
index d2fe436989862ee9d87f29dbde3fc4ab1b8b22d9..7970d07d9fa1e0f3f15f2fd8c4c9a8d22a64e5fa 100644
--- a/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
+++ b/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
@@ -204,7 +204,7 @@ void DataConsumerHandleTestUtil::ReplayingHandle::Context::notify()
if (!m_client)
return;
ASSERT(m_readerThread);
- m_readerThread->postTask(FROM_HERE, new Task(threadSafeBind(&Context::notifyInternal, this)));
+ m_readerThread->taskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&Context::notifyInternal, this)));
}
void DataConsumerHandleTestUtil::ReplayingHandle::Context::notifyInternal()
@@ -261,7 +261,7 @@ void DataConsumerHandleTestUtil::HandleReader::didGetReadable()
}
OwnPtr<HandleReadResult> result = adoptPtr(new HandleReadResult(r, m_data));
m_data.clear();
- Platform::current()->currentThread()->postTask(FROM_HERE, new Task(bind(&HandleReader::runOnFinishedReading, this, result.release())));
+ Platform::current()->currentThread()->taskRunner()->postTask(FROM_HERE, new Task(bind(&HandleReader::runOnFinishedReading, this, result.release())));
m_reader = nullptr;
}
@@ -295,7 +295,7 @@ void DataConsumerHandleTestUtil::HandleTwoPhaseReader::didGetReadable()
}
OwnPtr<HandleReadResult> result = adoptPtr(new HandleReadResult(r, m_data));
m_data.clear();
- Platform::current()->currentThread()->postTask(FROM_HERE, new Task(bind(&HandleTwoPhaseReader::runOnFinishedReading, this, result.release())));
+ Platform::current()->currentThread()->taskRunner()->postTask(FROM_HERE, new Task(bind(&HandleTwoPhaseReader::runOnFinishedReading, this, result.release())));
m_reader = nullptr;
}
« no previous file with comments | « Source/modules/fetch/CompositeDataConsumerHandle.cpp ('k') | Source/modules/fetch/DataConsumerHandleUtil.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698