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

Unified Diff: chrome/common/worker_thread_ticker.h

Issue 9185026: Convert use of int ms to TimeDelta in files owned by brettw. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Explicitly include base/time.h in header file. Created 8 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 | « chrome/common/service_process_util_unittest.cc ('k') | chrome/common/worker_thread_ticker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/worker_thread_ticker.h
diff --git a/chrome/common/worker_thread_ticker.h b/chrome/common/worker_thread_ticker.h
index dc5f542a5b69e1ee0ef49a91eae0db4ca1a05135..99449c36c116e5fb990173461e62b282859919dd 100644
--- a/chrome/common/worker_thread_ticker.h
+++ b/chrome/common/worker_thread_ticker.h
@@ -58,11 +58,11 @@ class WorkerThreadTicker {
}
void set_tick_interval(int tick_interval) {
- tick_interval_ = tick_interval;
+ tick_interval_ = base::TimeDelta::FromMilliseconds(tick_interval);
}
int tick_interval() const {
- return tick_interval_;
+ return tick_interval_.InMilliseconds();
}
private:
@@ -80,7 +80,7 @@ class WorkerThreadTicker {
bool is_running_;
// The interval at which the callbacks are to be invoked
- int tick_interval_;
+ base::TimeDelta tick_interval_;
// A list that holds all registered callback interfaces
TickHandlerListType tick_handler_list_;
« no previous file with comments | « chrome/common/service_process_util_unittest.cc ('k') | chrome/common/worker_thread_ticker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698