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

Unified Diff: ios/web/web_thread_impl.cc

Issue 1926813005: Remove MessageLoop::PostNonNestableDelayedTask(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios Created 4 years, 8 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 | « base/message_loop/message_loop_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_thread_impl.cc
diff --git a/ios/web/web_thread_impl.cc b/ios/web/web_thread_impl.cc
index 4d09d5cfb203aceafafc30e567b08c190f47687f..38f4a33ac3ee76c6912e5a568be897214de3d0c3 100644
--- a/ios/web/web_thread_impl.cc
+++ b/ios/web/web_thread_impl.cc
@@ -24,7 +24,7 @@ namespace web {
namespace {
// Friendly names for the well-known threads.
-const char* g_web_thread_names[WebThread::ID_COUNT] = {
+const char* const g_web_thread_names[WebThread::ID_COUNT] = {
"Web_UIThread", // UI
"Web_DBThread", // DB
"Web_FileThread", // FILE
@@ -303,9 +303,10 @@ bool WebThreadImpl::PostTaskHelper(WebThread::ID identifier,
: nullptr;
if (message_loop) {
if (nestable) {
- message_loop->PostDelayedTask(from_here, task, delay);
+ message_loop->task_runner()->PostDelayedTask(from_here, task, delay);
} else {
- message_loop->PostNonNestableDelayedTask(from_here, task, delay);
+ message_loop->task_runner()->PostNonNestableDelayedTask(from_here, task,
+ delay);
}
}
« no previous file with comments | « base/message_loop/message_loop_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698