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

Unified Diff: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp

Issue 2196833002: Propagate proper FROM_HERE to postTask() in worker code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | third_party/WebKit/Source/wtf/debug/Alias.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index 484a0d261365e1102efdf5bbd8d14a831c6b0d04..f799c5b2739c975a22c5b9e31d99ff5d4fd4f5af 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -270,16 +270,16 @@ void WebSharedWorkerImpl::workerThreadTerminatedOnMainThread()
// WorkerLoaderProxyProvider -----------------------------------------------------------
-void WebSharedWorkerImpl::postTaskToLoader(std::unique_ptr<ExecutionContextTask> task)
+void WebSharedWorkerImpl::postTaskToLoader(const WebTraceLocation& location, std::unique_ptr<ExecutionContextTask> task)
{
// TODO(hiroshige,yuryu): Make this not use ExecutionContextTask and
// consider using m_mainThreadTaskRunners->getLoadingTaskRunner() instead.
- m_mainFrame->frame()->document()->postTask(BLINK_FROM_HERE, std::move(task));
+ m_mainFrame->frame()->document()->postTask(location, std::move(task));
}
-bool WebSharedWorkerImpl::postTaskToWorkerGlobalScope(std::unique_ptr<ExecutionContextTask> task)
+bool WebSharedWorkerImpl::postTaskToWorkerGlobalScope(const WebTraceLocation& location, std::unique_ptr<ExecutionContextTask> task)
{
- m_workerThread->postTask(BLINK_FROM_HERE, std::move(task));
+ m_workerThread->postTask(location, std::move(task));
return true;
}
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.h ('k') | third_party/WebKit/Source/wtf/debug/Alias.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698