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

Unified Diff: content/browser/browser_thread_impl.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: Remove old PDT interface in webkit/dom_storage. Created 8 years, 9 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: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 21b84965796bd6868e62b18751f727ed829769b0..0745b22ea8186d1e32f4bf4fdb0f14a170d92f30 100644
--- a/content/browser/browser_thread_impl.cc
+++ b/content/browser/browser_thread_impl.cc
@@ -186,11 +186,6 @@ class BrowserThreadMessageLoopProxy : public base::MessageLoopProxy {
// MessageLoopProxy implementation.
virtual bool PostDelayedTask(
const tracked_objects::Location& from_here,
- const base::Closure& task, int64 delay_ms) OVERRIDE {
- return BrowserThread::PostDelayedTask(id_, from_here, task, delay_ms);
- }
- virtual bool PostDelayedTask(
- const tracked_objects::Location& from_here,
const base::Closure& task, base::TimeDelta delay) OVERRIDE {
return BrowserThread::PostDelayedTask(id_, from_here, task, delay);
}
@@ -198,13 +193,6 @@ class BrowserThreadMessageLoopProxy : public base::MessageLoopProxy {
virtual bool PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) OVERRIDE {
- return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task,
- delay_ms);
- }
- virtual bool PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) OVERRIDE {
return BrowserThread::PostNonNestableDelayedTask(id_, from_here, task,
delay);
@@ -290,19 +278,6 @@ bool BrowserThread::PostTask(ID identifier,
bool BrowserThread::PostDelayedTask(ID identifier,
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) {
- return BrowserThreadImpl::PostTaskHelper(
- identifier,
- from_here,
- task,
- base::TimeDelta::FromMilliseconds(delay_ms),
- true);
-}
-
-// static
-bool BrowserThread::PostDelayedTask(ID identifier,
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) {
return BrowserThreadImpl::PostTaskHelper(
identifier, from_here, task, delay, true);
@@ -322,20 +297,6 @@ bool BrowserThread::PostNonNestableDelayedTask(
ID identifier,
const tracked_objects::Location& from_here,
const base::Closure& task,
- int64 delay_ms) {
- return BrowserThreadImpl::PostTaskHelper(
- identifier,
- from_here,
- task,
- base::TimeDelta::FromMilliseconds(delay_ms),
- false);
-}
-
-// static
-bool BrowserThread::PostNonNestableDelayedTask(
- ID identifier,
- const tracked_objects::Location& from_here,
- const base::Closure& task,
base::TimeDelta delay) {
return BrowserThreadImpl::PostTaskHelper(
identifier, from_here, task, delay, false);

Powered by Google App Engine
This is Rietveld 408576698