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

Unified Diff: remoting/jingle_glue/jingle_thread.cc

Issue 3884001: Switch to using TimeTicks rather than Time in message loops (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « base/message_pump_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_thread.cc
===================================================================
--- remoting/jingle_glue/jingle_thread.cc (revision 65315)
+++ remoting/jingle_glue/jingle_thread.cc (working copy)
@@ -25,7 +25,7 @@
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 @@
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 @@
}
JingleThread* thread_;
- base::Time delayed_work_time_;
+ base::TimeTicks delayed_work_time_;
};
class JingleThread::JingleMessageLoop : public MessageLoop {
« no previous file with comments | « base/message_pump_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698