Index: chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc |
diff --git a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc |
index 9eab24c7c12c711653febdf7f7a77677a5f864c3..ad142a401598ce3b57b0580006ef718f0af8b03d 100644 |
--- a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc |
+++ b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc |
@@ -21,6 +21,7 @@ |
#include "chrome/browser/history/history_service.h" |
#include "chrome/browser/history/history_service_factory.h" |
#include "chrome/browser/search/search.h" |
+#include "chrome/browser/search_engines/template_url_service_factory.h" |
#include "components/history/core/browser/url_database.h" |
#include "components/metrics/proto/omnibox_event.pb.h" |
#include "components/search_engines/template_url.h" |
@@ -180,6 +181,8 @@ void OmniboxUIHandler::StartOmniboxQuery(const mojo::String& input_string, |
} |
void OmniboxUIHandler::ResetController() { |
- controller_.reset(new AutocompleteController(profile_, this, |
+ controller_.reset(new AutocompleteController(profile_, |
+ TemplateURLServiceFactory::GetForProfile(profile_), |
+ this, |
AutocompleteClassifier::kDefaultOmniboxProviders)); |
} |