Index: gin/modules/timer.cc |
diff --git a/gin/modules/timer.cc b/gin/modules/timer.cc |
index 3196dda42587945f16b5893dadeba4d979f7838e..4ba7f9174e4563c5931b44ba3993a31ac8764b50 100644 |
--- a/gin/modules/timer.cc |
+++ b/gin/modules/timer.cc |
@@ -41,10 +41,10 @@ ObjectTemplateBuilder Timer::GetObjectTemplateBuilder(v8::Isolate* isolate) { |
Timer::Timer(v8::Isolate* isolate, bool repeating, int delay_ms, |
v8::Handle<v8::Function> function) |
- : weak_factory_(this), |
- timer_(false, repeating), |
+ : timer_(false, repeating), |
runner_(PerContextData::From( |
- isolate->GetCurrentContext())->runner()->GetWeakPtr()) { |
+ isolate->GetCurrentContext())->runner()->GetWeakPtr()), |
+ weak_factory_(this) { |
GetWrapper(runner_->GetContextHolder()->isolate())->SetHiddenValue( |
GetHiddenPropertyName(isolate), function); |
timer_.Start(FROM_HERE, base::TimeDelta::FromMilliseconds(delay_ms), |