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

Issue 3153031: Gateway Location Provider (Closed)

Created:
10 years, 4 months ago by allanwoj
Modified:
9 years, 6 months ago
Reviewers:
joth, bulach
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Gateway Location Provider Location provider using the MAC address of a router the user is connected to via Ethernet to find a position fix. BUG=NONE TEST=Unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57052

Patch Set 1 #

Patch Set 2 : A bit of renaming #

Total comments: 7

Patch Set 3 : Feedback fixes #

Patch Set 4 : Whitespace #

Patch Set 5 : Land patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+378 lines, -40 lines) Patch
M chrome/browser/geolocation/device_data_provider.h View 1 2 3 4 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/empty_device_data_provider.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/network_location_provider.h View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/network_location_provider.cc View 1 13 chunks +45 lines, -14 lines 0 comments Download
M chrome/browser/geolocation/network_location_provider_unittest.cc View 1 2 3 4 7 chunks +241 lines, -23 lines 0 comments Download
M chrome/browser/geolocation/network_location_request.h View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/network_location_request.cc View 8 chunks +32 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
allanwoj
10 years, 4 months ago (2010-08-20 13:43:23 UTC) #1
joth
LGTM, few small comments. The repetition of {Wifi, Radio, Gateway} is starting to get a ...
10 years, 4 months ago (2010-08-23 11:24:59 UTC) #2
allanwoj
10 years, 4 months ago (2010-08-23 14:07:17 UTC) #3
http://codereview.chromium.org/3153031/diff/2001/3001
File chrome/browser/geolocation/device_data_provider.h (right):

http://codereview.chromium.org/3153031/diff/2001/3001#newcode188
chrome/browser/geolocation/device_data_provider.h:188: struct RouterDataLess :
public std::less<RouterData> {
On 2010/08/23 11:24:59, joth wrote:
> could you make another CL to remove this inheritance from all three of these
> classes?
> (can probably remove <functional> from the includes too)
Yep, will do.

http://codereview.chromium.org/3153031/diff/2001/3001#newcode210
chrome/browser/geolocation/device_data_provider.h:210: }
On 2010/08/23 11:24:59, joth wrote:
> fyi this is O(nlogn). as both sets are ordered, we can do this comparison in
> O(n).
> - use two iterators and advance both in step.
> 

Done.

http://codereview.chromium.org/3153031/diff/2001/3005
File chrome/browser/geolocation/network_location_provider_unittest.cc (right):

http://codereview.chromium.org/3153031/diff/2001/3005#newcode287
chrome/browser/geolocation/network_location_provider_unittest.cc:287:
EXPECT_EQ(expected->radio_signal_strength, actual->radio_signal_strength)
On 2010/08/23 11:24:59, joth wrote:
> overlength

Done.

Powered by Google App Engine
This is Rietveld 408576698