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

Issue 441883003: Simplify Android geolocation permission checks (Closed)

Created:
6 years, 4 months ago by Miguel Garcia
Modified:
6 years, 4 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, Michael van Ouwerkerk, markusheintz_, wjia+watch_chromium.org, tommi (sloooow) - chröme
Project:
chromium
Visibility:
Public.

Description

Simplify Android geolocation permission checks BUG=400694 TBR=tommi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287782

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Bernhard review, fix tests #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -300 lines) Patch
M chrome/android/shell/chrome_shell_google_location_settings_helper.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M chrome/android/shell/chrome_shell_google_location_settings_helper.cc View 1 2 1 chunk +1 line, -18 lines 0 comments Download
M chrome/browser/android/google_location_settings_helper.h View 1 2 2 chunks +13 lines, -8 lines 0 comments Download
A chrome/browser/android/google_location_settings_helper.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/android/mock_google_location_settings_helper.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/android/mock_google_location_settings_helper.cc View 1 2 4 chunks +1 line, -19 lines 0 comments Download
M chrome/browser/content_settings/permission_context_base.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 6 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.h View 1 2 3 4 3 chunks +13 lines, -17 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.cc View 1 2 3 4 4 chunks +5 lines, -13 lines 0 comments Download
D chrome/browser/geolocation/geolocation_infobar_delegate_android.h View 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/geolocation/geolocation_infobar_delegate_android.cc View 1 chunk +0 lines, -78 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context.h View 3 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context.cc View 5 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.h View 1 2 3 3 chunks +23 lines, -12 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_android.cc View 1 2 4 chunks +6 lines, -44 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 2 chunks +1 line, -19 lines 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Miguel Garcia
Bernhard for content settings Michael for geolocation
6 years, 4 months ago (2014-08-05 12:31:53 UTC) #1
Bernhard Bauer
Nice! LGTM, just some nits, mostly about comments: https://codereview.chromium.org/441883003/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/441883003/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode48 chrome/browser/geolocation/geolocation_permission_context_android.cc:48: google_location_settings_helper_->IsMasterLocationSettingEnabled() ...
6 years, 4 months ago (2014-08-05 12:43:50 UTC) #2
Miguel Garcia
https://codereview.chromium.org/441883003/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc File chrome/browser/geolocation/geolocation_permission_context_android.cc (right): https://codereview.chromium.org/441883003/diff/20001/chrome/browser/geolocation/geolocation_permission_context_android.cc#newcode48 chrome/browser/geolocation/geolocation_permission_context_android.cc:48: google_location_settings_helper_->IsMasterLocationSettingEnabled() && Indeed, let's add the call now, based ...
6 years, 4 months ago (2014-08-05 16:19:41 UTC) #3
Michael van Ouwerkerk
https://codereview.chromium.org/441883003/diff/40001/chrome/browser/android/mock_google_location_settings_helper.h File chrome/browser/android/mock_google_location_settings_helper.h (right): https://codereview.chromium.org/441883003/diff/40001/chrome/browser/android/mock_google_location_settings_helper.h#newcode15 chrome/browser/android/mock_google_location_settings_helper.h:15: // GoogleLocationSettingsHelper implementation: Don't you need virtual bool IsSystemLocationEnabled() ...
6 years, 4 months ago (2014-08-06 10:47:44 UTC) #4
Miguel Garcia
https://codereview.chromium.org/441883003/diff/40001/chrome/browser/android/mock_google_location_settings_helper.h File chrome/browser/android/mock_google_location_settings_helper.h (right): https://codereview.chromium.org/441883003/diff/40001/chrome/browser/android/mock_google_location_settings_helper.h#newcode15 chrome/browser/android/mock_google_location_settings_helper.h:15: // GoogleLocationSettingsHelper implementation: On 2014/08/06 10:47:43, Michael van Ouwerkerk ...
6 years, 4 months ago (2014-08-06 12:56:59 UTC) #5
Michael van Ouwerkerk
lgtm
6 years, 4 months ago (2014-08-06 13:10:17 UTC) #6
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 4 months ago (2014-08-06 13:11:42 UTC) #7
Miguel Garcia
The CQ bit was unchecked by miguelg@chromium.org
6 years, 4 months ago (2014-08-06 13:11:46 UTC) #8
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 4 months ago (2014-08-06 13:16:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/441883003/60001
6 years, 4 months ago (2014-08-06 13:17:19 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-06 13:25:01 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-06 13:26:11 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel/builds/3419)
6 years, 4 months ago (2014-08-06 13:26:15 UTC) #13
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 4 months ago (2014-08-06 13:34:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/441883003/80001
6 years, 4 months ago (2014-08-06 13:35:25 UTC) #15
Miguel Garcia
On 2014/08/06 13:35:25, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 4 months ago (2014-08-06 13:44:29 UTC) #16
Miguel Garcia
The CQ bit was unchecked by miguelg@chromium.org
6 years, 4 months ago (2014-08-06 13:44:34 UTC) #17
Miguel Garcia
The CQ bit was checked by miguelg@chromium.org
6 years, 4 months ago (2014-08-06 13:44:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/441883003/80001
6 years, 4 months ago (2014-08-06 13:44:56 UTC) #19
tommi (sloooow) - chröme
lgtm for protected_media_identifier_permission_context.cc
6 years, 4 months ago (2014-08-06 13:46:53 UTC) #20
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 16:35:54 UTC) #21
Message was sent while issue was closed.
Change committed as 287782

Powered by Google App Engine
This is Rietveld 408576698