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

Unified Diff: chrome/browser/android/omnibox/autocomplete_controller_android.cc

Issue 363893002: Revert of Reduces dependency from AutocompleteMatch to Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | chrome/browser/autocomplete/autocomplete_classifier_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/omnibox/autocomplete_controller_android.cc
diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.cc b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
index 8bb2fc62f24808954bf0b6278bea4241ca6430aa..2ff97d5fa99a0881a37974979cff71eea72a1ac9 100644
--- a/chrome/browser/android/omnibox/autocomplete_controller_android.cc
+++ b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
@@ -82,8 +82,7 @@
ZeroSuggestPrefetcher::ZeroSuggestPrefetcher(Profile* profile)
: controller_(new AutocompleteController(
- profile, TemplateURLServiceFactory::GetForProfile(profile), this,
- AutocompleteProvider::TYPE_ZERO_SUGGEST)) {
+ profile, this, AutocompleteProvider::TYPE_ZERO_SUGGEST)) {
// Creating an arbitrary fake_request_source to avoid passing in an invalid
// AutocompleteInput object.
base::string16 fake_request_source(base::ASCIIToUTF16(
@@ -116,8 +115,7 @@
AutocompleteControllerAndroid::AutocompleteControllerAndroid(Profile* profile)
: autocomplete_controller_(new AutocompleteController(
- profile, TemplateURLServiceFactory::GetForProfile(profile), this,
- kAndroidAutocompleteProviders)),
+ profile, this, kAndroidAutocompleteProviders)),
inside_synchronous_start_(false),
profile_(profile) {
}
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_classifier_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698