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

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

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/DataConsumerHandleUtil.cpp
diff --git a/Source/modules/fetch/DataConsumerHandleUtil.cpp b/Source/modules/fetch/DataConsumerHandleUtil.cpp
index e6d9e2491e8e83ddc8d756d1fea8744521947e64..38bf72d4253a9346f40de613530120682a07cc71 100644
--- a/Source/modules/fetch/DataConsumerHandleUtil.cpp
+++ b/Source/modules/fetch/DataConsumerHandleUtil.cpp
@@ -140,7 +140,7 @@ NotifyOnReaderCreationHelper::NotifyOnReaderCreationHelper(WebDataConsumerHandle
return;
// Note we don't need thread safety here because this object is
// bound to the current thread.
- Platform::current()->currentThread()->postTask(FROM_HERE, new Task(bind(&NotifyOnReaderCreationHelper::notify, m_factory.createWeakPtr(), client)));
+ Platform::current()->currentThread()->defaultTaskRunner()->postTask(FROM_HERE, new Task(bind(&NotifyOnReaderCreationHelper::notify, m_factory.createWeakPtr(), client)));
}
void NotifyOnReaderCreationHelper::notify(WebDataConsumerHandle::Client* client)

Powered by Google App Engine
This is Rietveld 408576698