| 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 53171ff079ee13ac45b07ffe4372e516ff6da693..8394ff31d4e7e37a90732f680e8ec02b8acfb401 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));
|
|
|