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

Unified Diff: base/tracking_info.h

Issue 2956683002: chrome://profiler infrastructure uses base time types. (Closed)
Patch Set: Address nit. Created 3 years, 6 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: base/tracking_info.h
diff --git a/base/tracking_info.h b/base/tracking_info.h
index 6c3bcd1a51471fa3c7b4e023691b03e95cda38ea..6a13a39bc3be791a623dee950cd5f34e314bc73c 100644
--- a/base/tracking_info.h
+++ b/base/tracking_info.h
@@ -12,7 +12,6 @@
#define BASE_TRACKING_INFO_H_
#include "base/base_export.h"
-#include "base/profiler/tracked_time.h"
#include "base/time/time.h"
namespace tracked_objects {
@@ -35,10 +34,8 @@ struct BASE_EXPORT TrackingInfo {
// means that queuing delay for such tasks will show how long they went
// unserviced, after they *could* be serviced. This is the same stat as we
// have for non-delayed tasks, and we consistently call it queuing delay.
- tracked_objects::TrackedTime EffectiveTimePosted() const {
- return delayed_run_time.is_null()
- ? time_posted
- : tracked_objects::TrackedTime(delayed_run_time);
+ base::TimeTicks EffectiveTimePosted() const {
+ return delayed_run_time.is_null() ? time_posted : delayed_run_time;
}
// Record of location and thread that the task came from.
@@ -47,7 +44,7 @@ struct BASE_EXPORT TrackingInfo {
// Time when the related task was posted. Note that this value may be empty
// if task profiling is disabled, and should only be used in conjunction with
// profiling-related reporting.
- tracked_objects::TrackedTime time_posted;
+ base::TimeTicks time_posted;
// The time when the task should be run.
base::TimeTicks delayed_run_time;
« no previous file with comments | « base/tracked_objects_unittest.cc ('k') | third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698