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

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: Rebase onto master. Created 8 years, 6 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 | « cloud_print/service/service_state.cc ('k') | content/browser/download/byte_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread_impl.cc
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc
index 297bb30d7cbbcc660439f6b19738ae13eea039b1..13ab5a520ccbc2d53bb95ef27b3d72bdf261e5bb 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);
@@ -301,19 +289,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);
@@ -333,20 +308,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);
« no previous file with comments | « cloud_print/service/service_state.cc ('k') | content/browser/download/byte_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698