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

Issue 11186010: Update geolocation infobar to handle Android system settings (Closed)

Created:
8 years, 2 months ago by Ramya
Modified:
8 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Lei Zhang
Visibility:
Public.

Description

Add Google Location Settings geolocation permission flow Pre MR0 version in Android, we had an explicit "Enable Location" setting in Chrome that will show the infobar based on the settings. Post MR0, we use the combination of system master location setting and system google apps location setting to decide between 1. Showing the infobar with Allow button (if both master and google apps are turned on) 2. Showing the infobar with Settings button that will take user to Google Apps Location Setting activity (if master is on but google apps location setting is turned off) 3. Do not show infobar (if master is off) Above functionality has been added in this CL for both pre and post MR0 cases. This CL also removes the android unit_test for GeolocationEnabledDisabled. Since the android specific geolocation code is going to be refactored, this test along with few more android specific unit_tests will be added in an upcoming CL. CQ-DEPEND=0f28fce084f6010242360fb7b6633b8fd7296be4 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164466

Patch Set 1 #

Patch Set 2 : Fix conflict #

Total comments: 4

Patch Set 3 : Updates from comments #

Patch Set 4 : Updates #

Total comments: 4

Patch Set 5 : Updates based on comments #

Patch Set 6 : Missed removing some diffs #

Total comments: 14

Patch Set 7 : Updates from comments #

Patch Set 8 : Updates from comments #

Total comments: 4

Patch Set 9 : Updates from comments #

Patch Set 10 : Fix clang error #

Patch Set 11 : Fixing clang failure #

Patch Set 12 : Failed to upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -31 lines) Patch
M base/android/jni_generator/jni_generator.py View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelper.java View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelperStub.java View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/android/google_location_settings_helper.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/android/google_location_settings_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/android/google_location_settings_helper_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/android/google_location_settings_helper_factory.cc View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_android.h View 1 2 3 4 5 6 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc View 1 2 3 4 5 6 7 4 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +25 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Ramya
This CL is dependent on http://codereview.chromium.org/11188020/
8 years, 2 months ago (2012-10-17 06:17:44 UTC) #1
Ramya
8 years, 2 months ago (2012-10-17 06:24:14 UTC) #2
John Knottenbelt
Thanks, Ramya. Do you have any ideas on what sort of tests (unit tests, preferably) ...
8 years, 2 months ago (2012-10-17 10:28:29 UTC) #3
John Knottenbelt
There seems to be some overlap with this and http://codereview.chromium.org/11188020/
8 years, 2 months ago (2012-10-17 12:35:47 UTC) #4
John Knottenbelt
http://codereview.chromium.org/11186010/diff/12001/chrome/browser/android/google_location_settings_helper.h File chrome/browser/android/google_location_settings_helper.h (right): http://codereview.chromium.org/11186010/diff/12001/chrome/browser/android/google_location_settings_helper.h#newcode22 chrome/browser/android/google_location_settings_helper.h:22: nit: remove blank line and #37. http://codereview.chromium.org/11186010/diff/12001/chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc File chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc ...
8 years, 2 months ago (2012-10-22 12:58:34 UTC) #5
Ramya
PTAL thestig, Can you take a look at chrome/chrome_browser.gypi? jcivelli, Can you take a look ...
8 years, 2 months ago (2012-10-22 23:57:11 UTC) #6
Jay Civelli
chrome/tests LGTM
8 years, 2 months ago (2012-10-23 00:18:19 UTC) #7
Lei Zhang
gyp files lgtm
8 years, 2 months ago (2012-10-23 00:34:05 UTC) #8
bulach
Hi Ramya, I have some suggestions below, hopefully that will simplify the design of this ...
8 years, 2 months ago (2012-10-23 13:06:26 UTC) #9
John Knottenbelt
Thanks, Ramya - one comment. https://codereview.chromium.org/11186010/diff/11009/chrome/browser/geolocation/chrome_geolocation_permission_context.cc File chrome/browser/geolocation/chrome_geolocation_permission_context.cc (right): https://codereview.chromium.org/11186010/diff/11009/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#newcode98 chrome/browser/geolocation/chrome_geolocation_permission_context.cc:98: #if defined(OS_ANDROID) Remove this ...
8 years, 2 months ago (2012-10-23 13:10:05 UTC) #10
Jay Civelli
http://codereview.chromium.org/11186010/diff/11009/chrome/browser/android/google_location_settings_helper.h File chrome/browser/android/google_location_settings_helper.h (right): http://codereview.chromium.org/11186010/diff/11009/chrome/browser/android/google_location_settings_helper.h#newcode35 chrome/browser/android/google_location_settings_helper.h:35: static GoogleLocationSettingsHelperFactory* helper_factory_; On 2012/10/23 13:06:26, bulach wrote: > ...
8 years, 2 months ago (2012-10-23 17:37:52 UTC) #11
Ramya
http://codereview.chromium.org/11186010/diff/11009/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelper.java File chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelper.java (right): http://codereview.chromium.org/11186010/diff/11009/chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelper.java#newcode13 chrome/android/java/src/org/chromium/chrome/browser/GoogleLocationSettingsHelper.java:13: On 2012/10/23 13:06:26, bulach wrote: > nit: remove \n ...
8 years, 2 months ago (2012-10-23 21:57:13 UTC) #12
bulach
hi Jay, Ramya, I understand and apologize if we caused any confusion... :) as any ...
8 years, 2 months ago (2012-10-24 10:02:54 UTC) #13
John Knottenbelt
Thanks for your perseverence, Ramya, we're getting there! lgtm with a couple of nits. I'm ...
8 years, 2 months ago (2012-10-24 12:49:02 UTC) #14
Ramya
http://codereview.chromium.org/11186010/diff/16023/chrome/android/testshell/testshell_stubs.cc File chrome/android/testshell/testshell_stubs.cc (right): http://codereview.chromium.org/11186010/diff/16023/chrome/android/testshell/testshell_stubs.cc#newcode8 chrome/android/testshell/testshell_stubs.cc:8: #include "chrome/browser/autofill/autofill_external_delegate.h" On 2012/10/24 12:49:02, John Knottenbelt wrote: > ...
8 years, 2 months ago (2012-10-24 23:16:06 UTC) #15
John Knottenbelt
lgtm
8 years, 1 month ago (2012-10-25 15:34:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cramya@chromium.org/11186010/31011
8 years, 1 month ago (2012-10-26 21:40:38 UTC) #17
commit-bot: I haz the power
8 years, 1 month ago (2012-10-27 00:49:39 UTC) #18
Change committed as 164466

Powered by Google App Engine
This is Rietveld 408576698