| 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 c671b624f9c1f19ce9cad086c96f53c4a2daffc6..82942d1b19893444835be1d0c20694626e245dbb 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());
|
|
|