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

Unified Diff: base/time/time.h

Issue 298163008: Non-SFI NaCl: Allow CLOCK_SYSTEM_TRACE on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac build fix Created 6 years, 7 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 | « no previous file | base/time/time_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time/time.h
diff --git a/base/time/time.h b/base/time/time.h
index f08ba68495cd773a77d92fb19ad15807950e4f99..12a5f16e42be5e76a4b11c020637b1b6ee989379 100644
--- a/base/time/time.h
+++ b/base/time/time.h
@@ -576,6 +576,14 @@ inline Time TimeDelta::operator+(Time t) const {
class BASE_EXPORT TimeTicks {
public:
+ // We define this even on Linux for seccomp sandbox testing.
+#if defined(OS_LINUX) || defined(OS_CHROMEOS)
Mark Seaborn 2014/05/30 16:38:20 Shouldn't this be "#if defined(OS_LINUX)", since O
hamaji 2014/06/02 08:15:04 I tried OS_LINUX-only first and I was surprised th
Mark Seaborn 2014/06/03 17:23:28 What part of the code is setting OS_CHROMEOS? bui
+ // 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.
+ static const clockid_t kClockSystemTrace = 11;
+#endif
+
TimeTicks() : ticks_(0) {
}
« no previous file with comments | « no previous file | base/time/time_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698