| Index: chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc
|
| diff --git a/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc b/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc
|
| index 05d09bebd2ee1e5b38d92558da4540c982dd0568..f45ba6379222e1d524bdb1be2bca3057d808da39 100644
|
| --- a/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc
|
| +++ b/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc
|
| @@ -204,7 +204,13 @@ void SearchGeolocationDisclosureTabHelper::MaybeShowDisclosureForValidUrl(
|
| return;
|
|
|
| // All good, let's show the disclosure and increment the shown count.
|
| - SearchGeolocationDisclosureInfoBarDelegate::Create(web_contents(), gurl);
|
| + TemplateURLService* template_url_service =
|
| + TemplateURLServiceFactory::GetForProfile(GetProfile());
|
| + const TemplateURL* template_url =
|
| + template_url_service->GetDefaultSearchProvider();
|
| + base::string16 search_engine_name = template_url->short_name();
|
| + SearchGeolocationDisclosureInfoBarDelegate::Create(web_contents(), gurl,
|
| + search_engine_name);
|
| shown_count++;
|
| prefs->SetInteger(prefs::kSearchGeolocationDisclosureShownCount, shown_count);
|
| prefs->SetInt64(prefs::kSearchGeolocationDisclosureLastShowDate,
|
|
|