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

Unified Diff: base/timer/timer.cc

Issue 641943002: components: Introduce AlarmTimer class and use it for GCM heartbeat (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make some Timer variables protected to reduce duplication, clean up comments Created 6 years, 2 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/timer/timer.cc
diff --git a/base/timer/timer.cc b/base/timer/timer.cc
index 1916ccc34ebb7c7bf328533ba8911ddd11679b17..aaa7ae84ad35e594fc5c68682922a69cfea81c7a 100644
--- a/base/timer/timer.cc
+++ b/base/timer/timer.cc
@@ -60,25 +60,25 @@ class BaseTimerTaskInternal {
};
Timer::Timer(bool retain_user_task, bool is_repeating)
- : scheduled_task_(NULL),
- thread_id_(0),
- is_repeating_(is_repeating),
+ : is_repeating_(is_repeating),
retain_user_task_(retain_user_task),
- is_running_(false) {
+ is_running_(false),
+ scheduled_task_(NULL),
+ thread_id_(0) {
}
Timer::Timer(const tracked_objects::Location& posted_from,
TimeDelta delay,
const base::Closure& user_task,
bool is_repeating)
- : scheduled_task_(NULL),
- posted_from_(posted_from),
+ : posted_from_(posted_from),
delay_(delay),
user_task_(user_task),
- thread_id_(0),
is_repeating_(is_repeating),
retain_user_task_(true),
- is_running_(false) {
+ is_running_(false),
+ scheduled_task_(NULL),
+ thread_id_(0) {
}
Timer::~Timer() {

Powered by Google App Engine
This is Rietveld 408576698