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

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

Issue 2218933003: Revert of Make WebTraceLocation be an alias of tracked_objects::Location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « components/scheduler/child/webthread_base.h ('k') | components/test_runner/test_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/webthread_base.cc
diff --git a/components/scheduler/child/webthread_base.cc b/components/scheduler/child/webthread_base.cc
index cf2ea07635c46e8201f07a54549c3569df97a759..cc3a5da2fb0b66022aee82ae9a554ee70cc04f78 100644
--- a/components/scheduler/child/webthread_base.cc
+++ b/components/scheduler/child/webthread_base.cc
@@ -80,21 +80,23 @@
idle_task->run((deadline - base::TimeTicks()).InSecondsF());
}
-void WebThreadBase::postIdleTask(const blink::WebTraceLocation& location,
+void WebThreadBase::postIdleTask(const blink::WebTraceLocation& web_location,
IdleTask* idle_task) {
+ tracked_objects::Location location(web_location.functionName(),
+ web_location.fileName(), -1, nullptr);
GetIdleTaskRunner()->PostIdleTask(
- location,
- base::Bind(&WebThreadBase::RunWebThreadIdleTask,
- base::Passed(base::WrapUnique(idle_task))));
+ location, base::Bind(&WebThreadBase::RunWebThreadIdleTask,
+ base::Passed(base::WrapUnique(idle_task))));
}
void WebThreadBase::postIdleTaskAfterWakeup(
- const blink::WebTraceLocation& location,
+ const blink::WebTraceLocation& web_location,
IdleTask* idle_task) {
+ tracked_objects::Location location(web_location.functionName(),
+ web_location.fileName(), -1, nullptr);
GetIdleTaskRunner()->PostIdleTaskAfterWakeup(
- location,
- base::Bind(&WebThreadBase::RunWebThreadIdleTask,
- base::Passed(base::WrapUnique(idle_task))));
+ location, base::Bind(&WebThreadBase::RunWebThreadIdleTask,
+ base::Passed(base::WrapUnique(idle_task))));
}
bool WebThreadBase::isCurrentThread() const {
« no previous file with comments | « components/scheduler/child/webthread_base.h ('k') | components/test_runner/test_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698