8 years, 2 months ago
(2012-10-17 06:25:20 UTC)
#2
John Knottenbelt
Thanks Ramya! lgtm. We should add tests to check that: - If the Google Location ...
8 years, 2 months ago
(2012-10-17 12:19:34 UTC)
#3
Thanks Ramya! lgtm. We should add tests to check that:
- If the Google Location Settings is available, that the global enable/disable
switch is ignored.
- If the Google Location Settings is unavailable, that the global
enable/disable switch is observed.
- That the Google Location Settings activity is requested to come up under the
correct circumstances.
- That the (persistent) content settings are not updated in the case that the
Google Location Settings is shown. It's expected that a page reload is required.
- That the permission context denies permission if the Google Location
Setttings disallows.
These might be best added as unit tests on
ChromeGeolocationPermissionContextAndroid.
bulach
thanks all! nits, and one suggestion for a factory function for the infobardelegate, please let ...
8 years, 2 months ago
(2012-10-17 13:17:38 UTC)
#4
Thanks for review, Marcus! https://codereview.chromium.org/11188020/diff/10003/chrome/browser/geolocation/geolocation_infobar_queue_controller_android.h File chrome/browser/geolocation/geolocation_infobar_queue_controller_android.h (right): https://codereview.chromium.org/11188020/diff/10003/chrome/browser/geolocation/geolocation_infobar_queue_controller_android.h#newcode14 chrome/browser/geolocation/geolocation_infobar_queue_controller_android.h:14: : public GeolocationInfoBarQueueController { Thanks, ...
8 years, 2 months ago
(2012-10-17 13:39:40 UTC)
#5
Thanks for review, Marcus!
https://codereview.chromium.org/11188020/diff/10003/chrome/browser/geolocatio...
File chrome/browser/geolocation/geolocation_infobar_queue_controller_android.h
(right):
https://codereview.chromium.org/11188020/diff/10003/chrome/browser/geolocatio...
chrome/browser/geolocation/geolocation_infobar_queue_controller_android.h:14: :
public GeolocationInfoBarQueueController {
Thanks, Marcus - yes I agree, this sounds simpler indeed.
On 2012/10/17 13:17:38, bulach wrote:
> the queue controller class is pretty heavy weight and does a lot of stuff..
> in here, it seems we only need to CreateInfoBarDelegate, but nothing else from
> the base class, that is, the method itself only requires the params that are
> passed to it.
>
> how about this:
> class GeolocationConfirmInfoBarDelegateFactory {
> // Creates a platform-specific geolocation ConfirmInfoBarDelegate.
> static GeolocationConfirmInfoBarDelegate* create(...);
> };
>
> the in the .cc file, we just have a simple ifdef to create an instance of the
> specific class... how does it sound?
>
> reason: when there's real platform-specific behavior change, such as in the
> permission context, it makes sense to to split into a base class and have
> different implementations.
> but in this case, it's just a matter of creating the right class, so the
> overhead is probably not worth it.. wdyt?
Ramya
PTAL Tests will be added as part of http://codereview.chromium.org/11186010/ once the android functionality has been ...
8 years, 2 months ago
(2012-10-17 21:43:31 UTC)
#6
bulach, jknotten: I had to add back GeolocationInfobarQueueControllerAndroid since it is needed for the next ...
8 years, 2 months ago
(2012-10-18 00:22:31 UTC)
#7
bulach, jknotten:
I had to add back GeolocationInfobarQueueControllerAndroid since it is needed
for the next CL http://codereview.chromium.org/11186010/ (WIP) where I pass a
pointer to GoogleLocationSettingsHelper from ChromeGeolocationPermissionContext
since it is needed for GeolocationConfirmInfobarAndroid.
thestig,
Can you please LGTM the chrome/chrome_browser.gypi change
willchan,
Can you please LGTM the chrome/browser/profiles change
jcivelli,
Can you please LGTM the chrome/test change
willchan no longer on Chromium
lgtm
8 years, 2 months ago
(2012-10-18 00:27:35 UTC)
#8
lgtm
Lei Zhang
gypi file lgtm
8 years, 2 months ago
(2012-10-18 00:32:41 UTC)
#9
gypi file lgtm
John Knottenbelt
Hi Ramya, in order to avoid subclassing the queue controller, the GeolocationInfobarDelegateAndroid will have to ...
8 years, 2 months ago
(2012-10-18 08:49:11 UTC)
#10
Hi Ramya, in order to avoid subclassing the queue controller, the
GeolocationInfobarDelegateAndroid will have to own it's a separate instance of
the GoogleLocationSettingsHelper, which is quite similar to what you had at the
beginning. Sorry about that!
On 2012/10/18 00:22:31, Ramya wrote:
> bulach, jknotten:
> I had to add back GeolocationInfobarQueueControllerAndroid since it is needed
> for the next CL http://codereview.chromium.org/11186010/ (WIP) where I pass a
> pointer to GoogleLocationSettingsHelper from
ChromeGeolocationPermissionContext
> since it is needed for GeolocationConfirmInfobarAndroid.
>
> thestig,
> Can you please LGTM the chrome/chrome_browser.gypi change
>
> willchan,
> Can you please LGTM the chrome/browser/profiles change
>
> jcivelli,
> Can you please LGTM the chrome/test change
Ramya
jknotten, bulach PTAL. Sorry forgot to send this out yesterday.
8 years, 2 months ago
(2012-10-19 18:24:58 UTC)
#11
jknotten, bulach
PTAL. Sorry forgot to send this out yesterday.
John Knottenbelt
lgtm. Thanks, Ramya!
8 years, 2 months ago
(2012-10-22 10:03:49 UTC)
#12
lgtm. Thanks, Ramya!
bulach
lgtm, thanks ramya! just nits below, feel free to go ahead once they're addressed: http://codereview.chromium.org/11188020/diff/7025/chrome/browser/geolocation/chrome_geolocation_permission_context.h ...
8 years, 2 months ago
(2012-10-22 13:01:03 UTC)
#13
Issue 11188020: Introduce Android variants of ChromeGeolocationPermissionContext, GeolocationConfirmInfoBarDelegate
(Closed)
Created 8 years, 2 months ago by Ramya
Modified 8 years, 2 months ago
Reviewers: Jay Civelli, bulach, John Knottenbelt, willchan no longer on Chromium, Lei Zhang
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 31