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

Issue 2627853002: Show the search geolocation disclosure from geolocation API use. (Closed)

Created:
3 years, 11 months ago by benwells
Modified:
3 years, 10 months ago
Reviewers:
raymes, Ilya Sherman, sky
CC:
chromium-reviews, awdf+watch_chromium.org, mlamouri+watch-geolocation_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, Michael van Ouwerkerk, mlamouri+watch-permissions_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show the search geolocation disclosure from geolocation API use. The new search geolocation system will automatically grant geolocation API access to the default search engine. This change shows the disclosure UI when this happens so the user is aware of it. This change also fixes a bug with showing the API introduced by an earlier change that prevented the disclosure from being shown on omnibox queries. BUG=674398 Review-Url: https://codereview.chromium.org/2627853002 Cr-Commit-Position: refs/heads/master@{#443553} Committed: https://chromium.googlesource.com/chromium/src/+/b3c6a28850a816162c59526005665c683ca42308

Patch Set 1 #

Patch Set 2 : Fix ChromeOS #

Total comments: 10

Patch Set 3 : Feedback and rebase (sorry) #

Total comments: 6

Patch Set 4 : Feedback; use more of the new stuff #

Total comments: 2

Patch Set 5 : Feedback #

Patch Set 6 : Fix tests #

Total comments: 1

Patch Set 7 : Rebase #

Patch Set 8 : Marked old ones obsolete #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -92 lines) Patch
M chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc View 1 2 3 4 5 6 chunks +81 lines, -90 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.cc View 1 2 3 4 5 2 chunks +29 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
benwells
3 years, 11 months ago (2017-01-11 11:09:13 UTC) #8
raymes
https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc File chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc (right): https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc#newcode167 chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc:167: // default (i.e. has not been explicitly set or ...
3 years, 11 months ago (2017-01-12 00:17:12 UTC) #11
benwells
https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode116 chrome/browser/geolocation/geolocation_permission_context_android.cc:116: web_contents, id, requesting_origin, embedding_origin, callback, persist, On 2017/01/12 00:17:12, ...
3 years, 11 months ago (2017-01-12 01:04:17 UTC) #12
raymes
https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode116 chrome/browser/geolocation/geolocation_permission_context_android.cc:116: web_contents, id, requesting_origin, embedding_origin, callback, persist, On 2017/01/12 01:04:17, ...
3 years, 11 months ago (2017-01-12 01:41:17 UTC) #13
benwells
https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc File chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc (right): https://codereview.chromium.org/2627853002/diff/20001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc#newcode167 chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc:167: // default (i.e. has not been explicitly set or ...
3 years, 11 months ago (2017-01-12 04:13:49 UTC) #14
raymes
https://codereview.chromium.org/2627853002/diff/40001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc File chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc (right): https://codereview.chromium.org/2627853002/diff/40001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc#newcode88 chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc:88: ShowDisclosureIfRulesPermit(gurl); I guess we don't want to check the ...
3 years, 11 months ago (2017-01-12 05:28:14 UTC) #15
benwells
https://codereview.chromium.org/2627853002/diff/40001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc File chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc (right): https://codereview.chromium.org/2627853002/diff/40001/chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc#newcode88 chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.cc:88: ShowDisclosureIfRulesPermit(gurl); On 2017/01/12 05:28:14, raymes wrote: > I guess ...
3 years, 11 months ago (2017-01-12 06:10:33 UTC) #16
raymes
lgtm https://codereview.chromium.org/2627853002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/2627853002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode133 chrome/browser/geolocation/geolocation_permission_context_android.cc:133: ->MaybeShowDisclosureForAPIUsage(requesting_origin); Since the origin is already being passed ...
3 years, 11 months ago (2017-01-12 06:29:16 UTC) #17
benwells
+sky for chrome/ owners +isherman for histograms https://codereview.chromium.org/2627853002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/2627853002/diff/60001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode133 chrome/browser/geolocation/geolocation_permission_context_android.cc:133: ->MaybeShowDisclosureForAPIUsage(requesting_origin); On ...
3 years, 11 months ago (2017-01-12 13:05:24 UTC) #27
sky
I'm not a good reviewer for these files. Could you update OWNERS with reasonable owners?
3 years, 11 months ago (2017-01-12 16:31:20 UTC) #28
Ilya Sherman
Metrics LGTM % a comment: https://codereview.chromium.org/2627853002/diff/100001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2627853002/diff/100001/tools/metrics/histograms/histograms.xml#newcode19827 tools/metrics/histograms/histograms.xml:19827: + enum="ContentSetting"> It looks ...
3 years, 11 months ago (2017-01-12 20:39:51 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627853002/140001
3 years, 11 months ago (2017-01-13 13:15:10 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 14:14:23 UTC) #35
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/b3c6a28850a816162c5952600566...

Powered by Google App Engine
This is Rietveld 408576698