diff options
Diffstat (limited to 'webkit/glue/resource_fetcher_unittest.cc')
-rw-r--r-- | webkit/glue/resource_fetcher_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/resource_fetcher_unittest.cc b/webkit/glue/resource_fetcher_unittest.cc index 81d9646..c742cee 100644 --- a/webkit/glue/resource_fetcher_unittest.cc +++ b/webkit/glue/resource_fetcher_unittest.cc @@ -83,9 +83,9 @@ class FetcherDelegate : public ResourceFetcher::Delegate { // CFAbsoluteTime is in seconds and |interval| is in ms, so make sure we // keep the units correct. CFTimeInterval interval_in_seconds = static_cast<double>(interval) / 1000.0; - CFAbsoluteTime fire_date = + CFAbsoluteTime fire_date = CFAbsoluteTimeGetCurrent() + interval_in_seconds; - timer_id_ = CFRunLoopTimerCreate(NULL, fire_date, interval_in_seconds, 0, + timer_id_ = CFRunLoopTimerCreate(NULL, fire_date, interval_in_seconds, 0, 0, FetcherDelegate::TimerCallback, NULL); CFRunLoopAddTimer(CFRunLoopGetCurrent(), timer_id_, kCFRunLoopCommonModes); #endif @@ -97,7 +97,7 @@ class FetcherDelegate : public ResourceFetcher::Delegate { #elif defined(OS_LINUX) g_source_remove(timer_id_); #elif defined(OS_MACOSX) - CFRunLoopRemoveTimer(CFRunLoopGetCurrent(), timer_id_, + CFRunLoopRemoveTimer(CFRunLoopGetCurrent(), timer_id_, kCFRunLoopCommonModes); CFRelease(timer_id_); #endif |