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

Issue 2475213002: Update the Google Search geolocation disclosure to make it more obvious. (Closed)

Created:
4 years, 1 month ago by benwells
Modified:
4 years, 1 month ago
CC:
chromium-reviews, dfalcantara+watch_chromium.org, agrieve+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update the Google Search geolocation disclosure to make it more obvious. This Android change (behind a flag) is the first in a series of patches to make the Google Search geolocation disclosure more noticeable. When the flag is enabled, this patch will: - disable the existing disclosure - show a new infobar disclosure when - an omnibox search has just been done - Google search is the default search engine - Chrome has geolocation permission - The current default search origin has not had geolocation allowed or blocked by the user. Note, this patch shows the disclosure on every navigation that meets these conditions. Future patches will limit how many times the disclosure is shown, will update the infobar to have a link, and update the infobar to always be on top of other infobars. BUG=661011 Committed: https://crrev.com/3503a8fc3531a8b903aef6db34bed83a73d2960d Cr-Commit-Position: refs/heads/master@{#430516}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Feedback #

Total comments: 3

Patch Set 3 : Introduce overload #

Total comments: 10

Patch Set 4 : Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java View 1 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationSnackbarController.java View 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/android/search_geolocation_disclosure_tab_helper.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/android/search_geolocation_disclosure_tab_helper.cc View 1 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.h View 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/ui/android/infobars/search_geolocation_disclosure_infobar.cc View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (17 generated)
benwells
Hi Dan, Please have a look. This is just the first patch getting most of ...
4 years, 1 month ago (2016-11-04 09:25:56 UTC) #6
gone
https://codereview.chromium.org/2475213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java (right): https://codereview.chromium.org/2475213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java:14: public class SearchGeolocationDisclosureInfoBar extends InfoBar { I guess you ...
4 years, 1 month ago (2016-11-04 23:21:49 UTC) #7
benwells
https://codereview.chromium.org/2475213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java (right): https://codereview.chromium.org/2475213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java:14: public class SearchGeolocationDisclosureInfoBar extends InfoBar { On 2016/11/04 23:21:48, ...
4 years, 1 month ago (2016-11-07 08:36:06 UTC) #12
gone
lgtm https://codereview.chromium.org/2475213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java (right): https://codereview.chromium.org/2475213002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java:14: public class SearchGeolocationDisclosureInfoBar extends InfoBar { On 2016/11/07 ...
4 years, 1 month ago (2016-11-07 19:01:53 UTC) #13
benwells
+pkasting for chrome/browser/ui/tab_helpers and components/infobars +isherman for histograms https://codereview.chromium.org/2475213002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java File chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java (right): https://codereview.chromium.org/2475213002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/GeolocationHeader.java:58: if ...
4 years, 1 month ago (2016-11-07 22:44:20 UTC) #15
Ilya Sherman
histograms.xml lgtm
4 years, 1 month ago (2016-11-08 01:15:53 UTC) #16
Peter Kasting
LGTM with comments https://codereview.chromium.org/2475213002/diff/40001/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc File chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc (right): https://codereview.chromium.org/2475213002/diff/40001/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc#newcode30 chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc:30: std::unique_ptr<infobars::InfoBar> infobar( Nit: Prefer base::MakeUnique() to ...
4 years, 1 month ago (2016-11-08 01:17:51 UTC) #17
benwells
https://codereview.chromium.org/2475213002/diff/40001/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc File chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc (right): https://codereview.chromium.org/2475213002/diff/40001/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc#newcode30 chrome/browser/android/search_geolocation_disclosure_infobar_delegate.cc:30: std::unique_ptr<infobars::InfoBar> infobar( On 2016/11/08 01:17:51, Peter Kasting wrote: > ...
4 years, 1 month ago (2016-11-08 02:53:40 UTC) #20
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/2475213002/60001
4 years, 1 month ago (2016-11-08 03:59:34 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-08 04:06:40 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 04:14:33 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3503a8fc3531a8b903aef6db34bed83a73d2960d
Cr-Commit-Position: refs/heads/master@{#430516}

Powered by Google App Engine
This is Rietveld 408576698