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

Unified Diff: components/timers/alarm_timer_chromeos.cc

Issue 1585463002: Use sysroot for chromeos builds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « build/config/sysroot.gni ('k') | components/timers/alarm_timer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/timers/alarm_timer_chromeos.cc
diff --git a/components/timers/alarm_timer_chromeos.cc b/components/timers/alarm_timer_chromeos.cc
index 0cb25fafd876312d40cb27fb572e0b7037ddc747..c7af26cc7194e89594efd3982ed3cff8f194f6e2 100644
--- a/components/timers/alarm_timer_chromeos.cc
+++ b/components/timers/alarm_timer_chromeos.cc
@@ -160,7 +160,11 @@ class AlarmTimer::Delegate
};
AlarmTimer::Delegate::Delegate(base::Closure on_timer_fired_callback)
+#ifdef CLOCK_REALTIME_ALARM
: alarm_fd_(timerfd_create(CLOCK_REALTIME_ALARM, 0)),
+#else
+ : alarm_fd_(-1),
+#endif
on_timer_fired_callback_(on_timer_fired_callback),
origin_reset_sequence_number_(0),
io_reset_sequence_number_(0) {
« no previous file with comments | « build/config/sysroot.gni ('k') | components/timers/alarm_timer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698