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

Unified Diff: base/message_loop/message_loop.cc

Issue 1013813003: base: Mark MessageLoop::Post*Task API deprecated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also forward the internal impl to the the task runner. Created 5 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
« base/message_loop/message_loop.h ('K') | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop/message_loop.cc
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index daa7782e5216879b577a33c0b35f602bf369db5d..7e2e821b32f4ce3c910d32234396a89e65c8f0c8 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -276,7 +276,7 @@ void MessageLoop::PostTask(
const tracked_objects::Location& from_here,
const Closure& task) {
DCHECK(!task.is_null()) << from_here.ToString();
Wez 2015/03/20 04:13:01 These DCHECKs should be in the TaskRunner impl now
Sami 2015/03/20 17:16:56 Good point, done. (I checked that the same DCHECKs
- incoming_task_queue_->AddToIncomingQueue(from_here, task, TimeDelta(), true);
+ task_runner()->PostTask(from_here, task);
danakj 2015/03/19 21:43:20 Note: This changes these into virtual function cal
Sami 2015/03/20 17:16:56 Good point. I checked this by hacking TaskPerfTest
}
void MessageLoop::PostDelayedTask(
@@ -284,14 +284,14 @@ void MessageLoop::PostDelayedTask(
const Closure& task,
TimeDelta delay) {
DCHECK(!task.is_null()) << from_here.ToString();
- incoming_task_queue_->AddToIncomingQueue(from_here, task, delay, true);
+ task_runner()->PostDelayedTask(from_here, task, delay);
}
void MessageLoop::PostNonNestableTask(
const tracked_objects::Location& from_here,
const Closure& task) {
DCHECK(!task.is_null()) << from_here.ToString();
- incoming_task_queue_->AddToIncomingQueue(from_here, task, TimeDelta(), false);
+ task_runner()->PostNonNestableTask(from_here, task);
}
void MessageLoop::PostNonNestableDelayedTask(
@@ -299,7 +299,7 @@ void MessageLoop::PostNonNestableDelayedTask(
const Closure& task,
TimeDelta delay) {
DCHECK(!task.is_null()) << from_here.ToString();
- incoming_task_queue_->AddToIncomingQueue(from_here, task, delay, false);
+ task_runner()->PostNonNestableDelayedTask(from_here, task, delay);
}
void MessageLoop::Run() {
« base/message_loop/message_loop.h ('K') | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698