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

Unified Diff: components/history/core/browser/top_sites_impl.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 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
Index: components/history/core/browser/top_sites_impl.cc
diff --git a/components/history/core/browser/top_sites_impl.cc b/components/history/core/browser/top_sites_impl.cc
index 72bf92e241259a8fed88fdcdc739e05d246ecac2..f983265ebf8adb899ec1a204dae2b02e97226251 100644
--- a/components/history/core/browser/top_sites_impl.cc
+++ b/components/history/core/browser/top_sites_impl.cc
@@ -51,7 +51,7 @@ void RunOrPostGetMostVisitedURLsCallback(
const MostVisitedURLList& nonforced_urls) {
const MostVisitedURLList& urls =
include_forced_urls ? all_urls : nonforced_urls;
- if (task_runner->RunsTasksOnCurrentThread())
+ if (task_runner->RunsTasksInCurrentSequence())
callback.Run(urls);
else
task_runner->PostTask(FROM_HERE, base::Bind(callback, urls));
« no previous file with comments | « components/gcm_driver/gcm_driver_desktop.cc ('k') | components/keyed_service/core/refcounted_keyed_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698