Index: base/time/time_posix.cc |
diff --git a/base/time/time_posix.cc b/base/time/time_posix.cc |
index 6b08bb3bd2020d71c77f25c2c57db88afb8ed371..cdb640946a23233b095c8ea919f2f6fe22195109 100644 |
--- a/base/time/time_posix.cc |
+++ b/base/time/time_posix.cc |
@@ -321,17 +321,12 @@ TimeTicks TimeTicks::ThreadNow() { |
} |
#if defined(OS_CHROMEOS) |
-// Force definition of the system trace clock; it is a chromeos-only api |
-// at the moment and surfacing it in the right place requires mucking |
-// with glibc et al. |
-#define CLOCK_SYSTEM_TRACE 11 |
- |
// static |
TimeTicks TimeTicks::NowFromSystemTraceTime() { |
uint64_t absolute_micro; |
struct timespec ts; |
- if (clock_gettime(CLOCK_SYSTEM_TRACE, &ts) != 0) { |
+ if (clock_gettime(kClockSystemTrace, &ts) != 0) { |
// NB: fall-back for a chrome os build running on linux |
return HighResNow(); |
} |