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

Issue 2901413006: Prevent NetworkLocationProvider from sending wifi data if started low accuracy

Created:
3 years, 7 months ago by afakhry
Modified:
3 years, 4 months ago
Reviewers:
mcasas, blundell
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent NetworkLocationProvider from sending wifi data if started low accuracy If NetworkLocationProvider is started with high accuracy disabled, then it shouldn't send wifi access points data and default IP-based geolocation only. BUG=726949 TEST=device_unittests --gtest_filter=GeolocationNetworkProviderTest.*

Patch Set 1 #

Patch Set 2 : Update commit message #

Patch Set 3 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -15 lines) Patch
M device/geolocation/network_location_provider.h View 1 chunk +7 lines, -0 lines 0 comments Download
M device/geolocation/network_location_provider.cc View 5 chunks +33 lines, -7 lines 1 comment Download
M device/geolocation/network_location_provider_unittest.cc View 9 chunks +47 lines, -8 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
afakhry
mcasas@ That's the basic idea. But I'm not sure if I missed things here and ...
3 years, 7 months ago (2017-05-26 19:53:57 UTC) #8
mcasas
This looks good to me. Would like to hear mvanouwerkerk@s opinion: Michael, is there any ...
3 years, 7 months ago (2017-05-26 21:35:20 UTC) #12
blundell
I think that there's already a canonical way to do this: https://cs.chromium.org/chromium/src/device/geolocation/geolocation_delegate.h?q=UseNetworkLocation+package:%5Echromium$&l=25 Why would we ...
3 years, 6 months ago (2017-05-29 07:22:49 UTC) #23
blundell
On 2017/05/29 07:22:49, blundell wrote: > I think that there's already a canonical way to ...
3 years, 6 months ago (2017-05-29 13:13:07 UTC) #24
afakhry
On 2017/05/29 13:13:07, blundell wrote: > On 2017/05/29 07:22:49, blundell wrote: > > I think ...
3 years, 6 months ago (2017-05-30 18:01:05 UTC) #25
afakhry
On 2017/05/30 18:01:05, afakhry wrote: > On 2017/05/29 13:13:07, blundell wrote: > > On 2017/05/29 ...
3 years, 6 months ago (2017-05-30 18:25:39 UTC) #26
blundell
FWIW, I think it might be easier to start from a design doc here, as ...
3 years, 6 months ago (2017-05-31 14:48:59 UTC) #27
blundell
https://codereview.chromium.org/2901413006/diff/40001/device/geolocation/network_location_provider.cc File device/geolocation/network_location_provider.cc (right): https://codereview.chromium.org/2901413006/diff/40001/device/geolocation/network_location_provider.cc#newcode195 device/geolocation/network_location_provider.cc:195: if (IsStarted()) Here you're never changing the accuracy once ...
3 years, 6 months ago (2017-05-31 14:49:35 UTC) #28
Michael van Ouwerkerk
3 years, 6 months ago (2017-06-02 09:16:00 UTC) #29
On 2017/05/31 14:49:35, blundell wrote:
>
https://codereview.chromium.org/2901413006/diff/40001/device/geolocation/netw...
> File device/geolocation/network_location_provider.cc (right):
> 
>
https://codereview.chromium.org/2901413006/diff/40001/device/geolocation/netw...
> device/geolocation/network_location_provider.cc:195: if (IsStarted())
> Here you're never changing the accuracy once the NetworkLocationProvider is
> first started. So if a second client came along and wanted Wifi data they
> wouldn't get it.

I have some concerns about this CL, I added some comments to the bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=726949#c2

Powered by Google App Engine
This is Rietveld 408576698