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

Unified Diff: components/scheduler/child/webthread_base.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/webthread_base.cc
diff --git a/components/scheduler/child/webthread_base.cc b/components/scheduler/child/webthread_base.cc
index cc3a5da2fb0b66022aee82ae9a554ee70cc04f78..87608e218b11614c5bf493d24d6d2c2919374751 100644
--- a/components/scheduler/child/webthread_base.cc
+++ b/components/scheduler/child/webthread_base.cc
@@ -83,7 +83,9 @@ void WebThreadBase::RunWebThreadIdleTask(
void WebThreadBase::postIdleTask(const blink::WebTraceLocation& web_location,
IdleTask* idle_task) {
tracked_objects::Location location(web_location.functionName(),
- web_location.fileName(), -1, nullptr);
+ web_location.fileName(),
+ web_location.lineNumber(),
+ web_location.programCounter());
GetIdleTaskRunner()->PostIdleTask(
location, base::Bind(&WebThreadBase::RunWebThreadIdleTask,
base::Passed(base::WrapUnique(idle_task))));
@@ -93,7 +95,9 @@ void WebThreadBase::postIdleTaskAfterWakeup(
const blink::WebTraceLocation& web_location,
IdleTask* idle_task) {
tracked_objects::Location location(web_location.functionName(),
- web_location.fileName(), -1, nullptr);
+ web_location.fileName(),
+ web_location.lineNumber(),
+ web_location.programCounter());
GetIdleTaskRunner()->PostIdleTaskAfterWakeup(
location, base::Bind(&WebThreadBase::RunWebThreadIdleTask,
base::Passed(base::WrapUnique(idle_task))));

Powered by Google App Engine
This is Rietveld 408576698