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

Unified Diff: chrome/browser/ui/webui/options/startup_pages_handler.cc

Issue 1192373002: Prepare AutocompleteController for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentize_zero_suggest_provider
Patch Set: Response to review Created 5 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') | components/omnibox.gypi » ('j') | 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 ce46269e0de328fc921cb39927215716d7287aa5..4b78cbf1ceeedb175e93b47abdfbabb85583ffc6 100644
--- a/chrome/browser/ui/webui/options/startup_pages_handler.cc
+++ b/chrome/browser/ui/webui/options/startup_pages_handler.cc
@@ -9,6 +9,7 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/autocomplete/autocomplete_classifier.h"
#include "chrome/browser/autocomplete/autocomplete_controller.h"
+#include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h"
#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/custom_home_pages_table_model.h"
@@ -100,8 +101,8 @@ void StartupPagesHandler::InitializeHandler() {
base::Bind(&StartupPagesHandler::UpdateStartupPages,
base::Unretained(this)));
- autocomplete_controller_.reset(new AutocompleteController(profile,
- TemplateURLServiceFactory::GetForProfile(profile), this,
+ autocomplete_controller_.reset(new AutocompleteController(
+ make_scoped_ptr(new ChromeAutocompleteProviderClient(profile)), this,
AutocompleteClassifier::kDefaultOmniboxProviders));
}
« no previous file with comments | « chrome/browser/ui/webui/options/home_page_overlay_handler.cc ('k') | components/omnibox.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698