Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc |
index c8049df9e28d21d6afa4c554f4c522c4e5351a63..d409fcf8f7e411d7bbf53e1ae2e8fde7d75294bf 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc |
@@ -29,10 +29,10 @@ void RecordDelayedTaskLateness(base::TimeDelta lateness) { |
lateness); |
} |
-void RecordImmediateTaskQueueingDuration(tracked_objects::Duration duration) { |
+void RecordImmediateTaskQueueingDuration(base::TimeDelta duration) { |
UMA_HISTOGRAM_TIMES( |
"RendererScheduler.TaskQueueManager.ImmediateTaskQueueingDuration", |
- base::TimeDelta::FromMilliseconds(duration.InMilliseconds())); |
+ duration); |
} |
double MonotonicTimeInSeconds(base::TimeTicks time_ticks) { |
@@ -564,7 +564,7 @@ void TaskQueueManager::MaybeRecordTaskDelayHistograms( |
RecordDelayedTaskLateness(delegate_->NowTicks() - |
pending_task.delayed_run_time); |
} else if (!pending_task.time_posted.is_null()) { |
- RecordImmediateTaskQueueingDuration(tracked_objects::TrackedTime::Now() - |
+ RecordImmediateTaskQueueingDuration(base::TimeTicks::Now() - |
pending_task.time_posted); |
} |
} |