| 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 fb8e080a2045e60a1f63894885465430ba753e8d..2133076db6575220fbb91d728882b76fd5d70f61 100644
|
| --- a/components/history/core/browser/top_sites_impl.cc
|
| +++ b/components/history/core/browser/top_sites_impl.cc
|
| @@ -217,9 +217,10 @@ void TopSitesImpl::GetMostVisitedURLs(
|
| if (!loaded_) {
|
| // A request came in before we finished loading. Store the callback and
|
| // we'll run it on current thread when we finish loading.
|
| - pending_callbacks_.push_back(base::Bind(
|
| - &RunOrPostGetMostVisitedURLsCallback,
|
| - base::ThreadTaskRunnerHandle::Get(), include_forced_urls, callback));
|
| + pending_callbacks_.push_back(
|
| + base::Bind(&RunOrPostGetMostVisitedURLsCallback,
|
| + base::RetainedRef(base::ThreadTaskRunnerHandle::Get()),
|
| + include_forced_urls, callback));
|
| return;
|
| }
|
| if (include_forced_urls) {
|
|
|