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

Unified Diff: chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h

Issue 2885763002: Only show search geolocation disclosure on omnibox searches or API use. (Closed)
Patch Set: Fix tests Created 3 years, 7 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/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h
diff --git a/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h b/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h
index 2215c4016e8a2ed5532d8bf775a066fef5e1a87a..3b8924938f0b2ca2ba08f79f28765876d23c1087 100644
--- a/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h
+++ b/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h
@@ -30,7 +30,7 @@ class SearchGeolocationDisclosureTabHelper
void NavigationEntryCommitted(
const content::LoadCommittedDetails& load_details) override;
- void MaybeShowDisclosure(const GURL& gurl);
+ void MaybeShowDisclosureForAPIAccess(const GURL& gurl);
static void ResetDisclosure(Profile* profile);
@@ -44,7 +44,10 @@ class SearchGeolocationDisclosureTabHelper
friend class content::WebContentsUserData<
SearchGeolocationDisclosureTabHelper>;
- bool ShouldShowDisclosureForUrl(const GURL& gurl);
+ void MaybeShowDisclosureForNavigation(const GURL& gurl);
+ void MaybeShowDisclosureForValidUrl(const GURL& gurl);
+ bool ShouldShowDisclosureForNavigation(const GURL& gurl);
+ bool ShouldShowDisclosureForAPIAccess(const GURL& gurl);
raymes 2017/05/17 23:56:07 nit: could you add some comments describing the 2
benwells 2017/05/18 04:50:05 Done.
// Record metrics, once per client, of the permission state before and after
// the disclosure has been shown.
« no previous file with comments | « no previous file | chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698