| Index: chrome/browser/android/search_geolocation_disclosure_tab_helper.cc
|
| diff --git a/chrome/browser/android/search_geolocation_disclosure_tab_helper.cc b/chrome/browser/android/search_geolocation_disclosure_tab_helper.cc
|
| index 30d9e8cf972ba4d262e0a8c5a6417feae6aa0fb8..510990a56be3f9dfc70a0774ae426a5d8ae7311f 100644
|
| --- a/chrome/browser/android/search_geolocation_disclosure_tab_helper.cc
|
| +++ b/chrome/browser/android/search_geolocation_disclosure_tab_helper.cc
|
| @@ -90,6 +90,10 @@ void SearchGeolocationDisclosureTabHelper::RegisterProfilePrefs(
|
|
|
| void SearchGeolocationDisclosureTabHelper::
|
| MaybeShowDefaultSearchGeolocationDisclosure(const GURL& gurl) {
|
| + // Don't show in incognito.
|
| + if (GetProfile()->IsOffTheRecord())
|
| + return;
|
| +
|
| // Only show the disclosure for default search navigations from the omnibox.
|
| TemplateURLService* template_url_service =
|
| TemplateURLServiceFactory::GetForProfile(GetProfile());
|
|
|