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

Unified Diff: remoting/base/scoped_thread_proxy.cc

Issue 9703053: Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 years, 7 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
Index: remoting/base/scoped_thread_proxy.cc
diff --git a/remoting/base/scoped_thread_proxy.cc b/remoting/base/scoped_thread_proxy.cc
index d1dcc2618b8a41f8ab99970ce699a235e2422da6..5c51159319ff9a479a661401ed853c4c19d904ab 100644
--- a/remoting/base/scoped_thread_proxy.cc
+++ b/remoting/base/scoped_thread_proxy.cc
@@ -24,9 +24,9 @@ class ScopedThreadProxy::Core : public base::RefCountedThreadSafe<Core> {
void PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& closure,
- int64 delay_ms) {
+ base::TimeDelta delay) {
if (!canceled_) {
- message_loop_->PostDelayedTask(from_here, Wrap(closure), delay_ms);
+ message_loop_->PostDelayedTask(from_here, Wrap(closure), delay);
}
}
@@ -75,8 +75,8 @@ void ScopedThreadProxy::PostTask(const tracked_objects::Location& from_here,
void ScopedThreadProxy::PostDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& closure,
- int64 delay_ms) {
- core_->PostDelayedTask(from_here, closure, delay_ms);
+ base::TimeDelta delay) {
+ core_->PostDelayedTask(from_here, closure, delay);
}
void ScopedThreadProxy::Detach() {

Powered by Google App Engine
This is Rietveld 408576698