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

Unified Diff: components/scheduler/child/web_task_runner_impl.cc

Issue 2137013002: Make WebTraceLocation be an alias of tracked_objects::Location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +#include <intrin.h> 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
Index: components/scheduler/child/web_task_runner_impl.cc
diff --git a/components/scheduler/child/web_task_runner_impl.cc b/components/scheduler/child/web_task_runner_impl.cc
index 922ca4a95ed81793f7c6b432c13549c611d3d8bb..8ffe3436d899744524ef4f30b6d21b7fa837ac59 100644
--- a/components/scheduler/child/web_task_runner_impl.cc
+++ b/components/scheduler/child/web_task_runner_impl.cc
@@ -20,7 +20,9 @@ WebTaskRunnerImpl::~WebTaskRunnerImpl() {}
void WebTaskRunnerImpl::postTask(const blink::WebTraceLocation& web_location,
blink::WebTaskRunner::Task* task) {
tracked_objects::Location location(web_location.functionName(),
- web_location.fileName(), -1, nullptr);
+ web_location.fileName(),
+ web_location.lineNumber(),
+ web_location.programCounter());
task_queue_->PostTask(
location,
base::Bind(
@@ -34,7 +36,9 @@ void WebTaskRunnerImpl::postDelayedTask(
double delayMs) {
DCHECK_GE(delayMs, 0.0);
tracked_objects::Location location(web_location.functionName(),
- web_location.fileName(), -1, nullptr);
+ web_location.fileName(),
+ web_location.lineNumber(),
+ web_location.programCounter());
task_queue_->PostDelayedTask(
location,
base::Bind(

Powered by Google App Engine
This is Rietveld 408576698