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

Unified Diff: content/renderer/scheduler/task_queue_manager.cc

Issue 846663002: Use ThreadData::Now() for TrackingInfo::time_posted initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « base/tracking_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/scheduler/task_queue_manager.cc
diff --git a/content/renderer/scheduler/task_queue_manager.cc b/content/renderer/scheduler/task_queue_manager.cc
index c2b42808d72bfbd0708c575a92abc1107196f506..cae9da02e048af8ab9e310233984eb11c287f4f0 100644
--- a/content/renderer/scheduler/task_queue_manager.cc
+++ b/content/renderer/scheduler/task_queue_manager.cc
@@ -232,7 +232,7 @@ void TaskQueue::TaskAsValueInto(const base::PendingTask& task,
state->SetBoolean("is_high_res", task.is_high_res);
state->SetDouble(
"time_posted",
- (task.time_posted - base::TimeTicks()).InMicroseconds() / 1000.0L);
+ (task.time_posted - tracked_objects::TrackedTime()).InMilliseconds());
jdduke (slow) 2015/01/09 16:45:46 Sami, should we consider removing this entry entir
Sami 2015/01/09 16:48:32 Yes, kill it. We can reconstruct it from trace eve
jdduke (slow) 2015/01/09 16:54:22 Done.
state->SetDouble(
"delayed_run_time",
(task.delayed_run_time - base::TimeTicks()).InMicroseconds() / 1000.0L);
« no previous file with comments | « base/tracking_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698