Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: chrome/browser/ui/omnibox/omnibox_controller.cc

Issue 354773002: Reduces dependency from AutocompleteMatch to Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/omnibox/omnibox_controller.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_controller.cc b/chrome/browser/ui/omnibox/omnibox_controller.cc
index 0917ebba6bc24dabc9d8e594509d10ba967444e0..f2686bb46f0bfd8d2e09770e673523c423558ddd 100644
--- a/chrome/browser/ui/omnibox/omnibox_controller.cc
+++ b/chrome/browser/ui/omnibox/omnibox_controller.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/prerender/prerender_manager_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/search.h"
+#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
#include "chrome/browser/ui/omnibox/omnibox_edit_model.h"
#include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
@@ -74,7 +75,8 @@ OmniboxController::OmniboxController(OmniboxEditModel* omnibox_edit_model,
profile_(profile),
popup_(NULL),
autocomplete_controller_(new AutocompleteController(profile, this,
- AutocompleteClassifier::kDefaultOmniboxProviders)) {
+ AutocompleteClassifier::kDefaultOmniboxProviders,
+ TemplateURLServiceFactory::GetForProfile(profile))) {
}
OmniboxController::~OmniboxController() {

Powered by Google App Engine
This is Rietveld 408576698