diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-06 22:23:29 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-06 22:23:29 +0000 |
commit | 7e7fab44ba1068bdce201757e82b6650fbca455d (patch) | |
tree | a25d1d1235e61672c95d66a7a287cc47f175799f /remoting | |
parent | ffb65401dabf6ce5a74fcc416690b2525168ab8a (diff) | |
download | chromium_src-7e7fab44ba1068bdce201757e82b6650fbca455d.zip chromium_src-7e7fab44ba1068bdce201757e82b6650fbca455d.tar.gz chromium_src-7e7fab44ba1068bdce201757e82b6650fbca455d.tar.bz2 |
Switch to using TimeTicks rather than Time in message loops
Switch to using TimeTicks rather than Time so that we
are not dependent on changes in the system clock.
r=mbelshe,darin
Review URL: http://codereview.chromium.org/3884001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/jingle_glue/jingle_thread.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/remoting/jingle_glue/jingle_thread.cc b/remoting/jingle_glue/jingle_thread.cc index e4ab098..25f646a 100644 --- a/remoting/jingle_glue/jingle_thread.cc +++ b/remoting/jingle_glue/jingle_thread.cc @@ -25,7 +25,7 @@ class JingleThread::JingleMessagePump : public base::MessagePump, virtual void ScheduleWork() { thread_->Post(this, kRunTasksMessageId); } - virtual void ScheduleDelayedWork(const base::Time& time) { + virtual void ScheduleDelayedWork(const base::TimeTicks& time) { delayed_work_time_ = time; ScheduleNextDelayedTask(); } @@ -66,7 +66,7 @@ class JingleThread::JingleMessagePump : public base::MessagePump, DCHECK_EQ(thread_->message_loop(), MessageLoop::current()); if (!delayed_work_time_.is_null()) { - base::Time now = base::Time::Now(); + base::TimeTicks now = base::TimeTicks::Now(); int delay = static_cast<int>((delayed_work_time_ - now).InMilliseconds()); if (delay > 0) { thread_->PostDelayed(delay, this, kRunTasksMessageId); @@ -77,7 +77,7 @@ class JingleThread::JingleMessagePump : public base::MessagePump, } JingleThread* thread_; - base::Time delayed_work_time_; + base::TimeTicks delayed_work_time_; }; class JingleThread::JingleMessageLoop : public MessageLoop { |