| 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));
|
|
|