| Index: components/history/core/browser/history_backend.cc
|
| diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
|
| index 6307b3eae9fd3eb74b35c14ebd66b4f174fe4a65..4b767f84164c03b15202c80d925d2b73b180f523 100644
|
| --- a/components/history/core/browser/history_backend.cc
|
| +++ b/components/history/core/browser/history_backend.cc
|
| @@ -1356,8 +1356,13 @@ void HistoryBackend::QueryMostVisitedURLs(int result_count,
|
| if (!db_)
|
| return;
|
|
|
| + auto url_filter = backend_client_
|
| + ? base::Bind(&HistoryBackendClient::IsWebSafe,
|
| + base::Unretained(backend_client_.get()))
|
| + : base::Callback<bool(const GURL&)>();
|
| std::vector<std::unique_ptr<PageUsageData>> data = db_->QuerySegmentUsage(
|
| - base::Time::Now() - base::TimeDelta::FromDays(days_back), result_count);
|
| + base::Time::Now() - base::TimeDelta::FromDays(days_back), result_count,
|
| + url_filter);
|
|
|
| for (const std::unique_ptr<PageUsageData>& current_data : data) {
|
| RedirectList redirects;
|
|
|