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

Unified Diff: chrome/browser/ui/webui/options/startup_pages_handler.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
« no previous file with comments | « chrome/browser/ui/webui/options/home_page_overlay_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/startup_pages_handler.cc
diff --git a/chrome/browser/ui/webui/options/startup_pages_handler.cc b/chrome/browser/ui/webui/options/startup_pages_handler.cc
index ffd26ce497f8df937a58205528de8d85d0ef0667..5e2ab8228fb8a3b6f0777b207ea56b3c47f30faf 100644
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/custom_home_pages_table_model.h"
#include "chrome/browser/prefs/session_startup_pref.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/common/pref_names.h"
#include "components/autocomplete/autocomplete_input.h"
#include "components/metrics/proto/omnibox_event.pb.h"
@@ -94,7 +95,8 @@ void StartupPagesHandler::InitializeHandler() {
base::Bind(&StartupPagesHandler::UpdateStartupPages,
base::Unretained(this)));
- autocomplete_controller_.reset(new AutocompleteController(profile, this,
+ autocomplete_controller_.reset(new AutocompleteController(profile,
+ TemplateURLServiceFactory::GetForProfile(profile), this,
AutocompleteClassifier::kDefaultOmniboxProviders));
}
« no previous file with comments | « chrome/browser/ui/webui/options/home_page_overlay_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698