summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android
diff options
context:
space:
mode:
authormukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-02 07:03:29 +0000
committermukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-02 07:03:29 +0000
commit596ce0e791506658954233c109462e64612a61b6 (patch)
treed7bdb13971a55cdec3a3546b51e4c008329ad3ef /chrome/browser/android
parenta481786fc1a45a1db62596ff3b7c964430ba22fd (diff)
downloadchromium_src-596ce0e791506658954233c109462e64612a61b6.zip
chromium_src-596ce0e791506658954233c109462e64612a61b6.tar.gz
chromium_src-596ce0e791506658954233c109462e64612a61b6.tar.bz2
Reduces dependency from AutocompleteMatch to Profile.
BUG=388510 R=hashimoto@chromium.org, blundell@chromium.org, pkasting@chromium.org TBR=dtrainor@chromium.org TEST=compile Review URL: https://codereview.chromium.org/354773002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/android')
-rw-r--r--chrome/browser/android/omnibox/autocomplete_controller_android.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/android/omnibox/autocomplete_controller_android.cc b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
index 2ff97d5..8bb2fc6 100644
--- a/chrome/browser/android/omnibox/autocomplete_controller_android.cc
+++ b/chrome/browser/android/omnibox/autocomplete_controller_android.cc
@@ -82,7 +82,8 @@ class ZeroSuggestPrefetcher : public AutocompleteControllerDelegate {
ZeroSuggestPrefetcher::ZeroSuggestPrefetcher(Profile* profile)
: controller_(new AutocompleteController(
- profile, this, AutocompleteProvider::TYPE_ZERO_SUGGEST)) {
+ profile, TemplateURLServiceFactory::GetForProfile(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(
@@ -115,7 +116,8 @@ void ZeroSuggestPrefetcher::OnResultChanged(bool default_match_changed) {
AutocompleteControllerAndroid::AutocompleteControllerAndroid(Profile* profile)
: autocomplete_controller_(new AutocompleteController(
- profile, this, kAndroidAutocompleteProviders)),
+ profile, TemplateURLServiceFactory::GetForProfile(profile), this,
+ kAndroidAutocompleteProviders)),
inside_synchronous_start_(false),
profile_(profile) {
}