diff options
author | mpearson <mpearson@chromium.org> | 2015-11-29 00:02:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-29 08:03:28 +0000 |
commit | 4792dfccec1fda93907a8cb1cfdccc74301e817c (patch) | |
tree | 1f5617ea5fa6835cc1bb012e23f3b3217f31be65 /ios | |
parent | 3e15d1a2576e534e3674936022b40bedcf6f04e9 (diff) | |
download | chromium_src-4792dfccec1fda93907a8cb1cfdccc74301e817c.zip chromium_src-4792dfccec1fda93907a8cb1cfdccc74301e817c.tar.gz chromium_src-4792dfccec1fda93907a8cb1cfdccc74301e817c.tar.bz2 |
Omnibox - HistoryQuickProvider - Cull Search Redirects Earlier
Rather than drop these URLs near the end of the pipeline--too late to
retrieve and return addition suggestions that would not be dropped--drop
them as early as possible by assigning them a score of 0 when being
scored.
TBR=droger
for trivial API change that affects ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc
BUG=180113
Review URL: https://codereview.chromium.org/1477563003
Cr-Commit-Position: refs/heads/master@{#362065}
Diffstat (limited to 'ios')
-rw-r--r-- | ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc index 232f9d0..63995a2 100644 --- a/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc +++ b/ios/chrome/browser/autocomplete/in_memory_url_index_factory.cc @@ -14,6 +14,7 @@ #include "ios/chrome/browser/chrome_url_constants.h" #include "ios/chrome/browser/history/history_service_factory.h" #include "ios/chrome/browser/pref_names.h" +#include "ios/chrome/browser/search_engines/template_url_service_factory.h" #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.h" #include "ios/web/public/web_thread.h" @@ -33,6 +34,7 @@ scoped_ptr<KeyedService> BuildInMemoryURLIndex(web::BrowserState* context) { ios::BookmarkModelFactory::GetForBrowserState(browser_state), ios::HistoryServiceFactory::GetForBrowserState( browser_state, ServiceAccessType::IMPLICIT_ACCESS), + ios::TemplateURLServiceFactory::GetForBrowserState(browser_state), web::WebThread::GetBlockingPool(), browser_state->GetStatePath(), browser_state->GetPrefs()->GetString(ios::prefs::kAcceptLanguages), schemes_to_whilelist)); |