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

Issue 604019: Refactor the state-machine & threading out of the windows wifi provider into ... (Closed)

Created:
10 years, 10 months ago by joth
Modified:
9 years, 7 months ago
Reviewers:
bulach, jorlow
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr., steveblock
Visibility:
Public.

Description

Refactor the state-machine & threading out of the windows wifi provider into a cross platform base class This will make the linux & mac impementations much simpler BUG=11246 TEST=Aded wifi_data_provider_common_unittest.cc. Run: unit_tests.exe --gtest_filer=Geoloc* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=38890

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -329 lines) Patch
M chrome/browser/geolocation/wifi_data_provider_common.h View 1 2 2 chunks +70 lines, -1 line 2 comments Download
M chrome/browser/geolocation/wifi_data_provider_common.cc View 1 2 1 chunk +77 lines, -0 lines 5 comments Download
A + chrome/browser/geolocation/wifi_data_provider_common_unittest.cc View 1 2 5 chunks +48 lines, -49 lines 0 comments Download
M chrome/browser/geolocation/wifi_data_provider_unittest_win.cc View 1 2 1 chunk +10 lines, -136 lines 0 comments Download
M chrome/browser/geolocation/wifi_data_provider_win.h View 1 chunk +5 lines, -51 lines 0 comments Download
M chrome/browser/geolocation/wifi_data_provider_win.cc View 4 chunks +13 lines, -92 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
joth
10 years, 10 months ago (2010-02-11 16:01:22 UTC) #1
bulach
nice refactoring! this will surely make things easier for other platforms. some nits and suggestions ...
10 years, 10 months ago (2010-02-12 10:42:25 UTC) #2
joth
Thanks! Will submit once it's all green... http://codereview.chromium.org/604019/diff/5001/4003 File chrome/browser/geolocation/wifi_data_provider_common.cc (right): http://codereview.chromium.org/604019/diff/5001/4003#newcode79 chrome/browser/geolocation/wifi_data_provider_common.cc:79: update_available = ...
10 years, 10 months ago (2010-02-12 11:28:29 UTC) #3
jorlow
A couple comments to roll into your next patch. http://codereview.chromium.org/604019/diff/3005/2010 File chrome/browser/geolocation/wifi_data_provider_common.cc (right): http://codereview.chromium.org/604019/diff/3005/2010#newcode20 chrome/browser/geolocation/wifi_data_provider_common.cc:20: ...
10 years, 10 months ago (2010-02-14 22:09:27 UTC) #4
jorlow
http://codereview.chromium.org/604019/diff/3005/2010 File chrome/browser/geolocation/wifi_data_provider_common.cc (right): http://codereview.chromium.org/604019/diff/3005/2010#newcode22 chrome/browser/geolocation/wifi_data_provider_common.cc:22: ALLOW_THIS_IN_INITIALIZER_LIST(task_factory_(this)) { On 2010/02/14 22:09:27, Jeremy Orlow wrote: > ...
10 years, 10 months ago (2010-02-14 22:48:22 UTC) #5
joth
10 years, 10 months ago (2010-02-15 11:28:53 UTC) #6
Thanks, will roll into my next patch.

http://codereview.chromium.org/604019/diff/3005/2010
File chrome/browser/geolocation/wifi_data_provider_common.cc (right):

http://codereview.chromium.org/604019/diff/3005/2010#newcode20
chrome/browser/geolocation/wifi_data_provider_common.cc:20: : Thread(__FILE__),
On 2010/02/14 22:09:27, Jeremy Orlow wrote:
> Hm...this seems kind of non-standard.

Good point, I did this as a placeholder and never looked back at it.
"Geolocation_wifi_provider" it is.

http://codereview.chromium.org/604019/diff/3005/2010#newcode22
chrome/browser/geolocation/wifi_data_provider_common.cc:22:
ALLOW_THIS_IN_INITIALIZER_LIST(task_factory_(this)) {
On 2010/02/14 22:48:22, Jeremy Orlow wrote:
> On 2010/02/14 22:09:27, Jeremy Orlow wrote:
> > I think usually this goes inside the task_factor_()
> 
> never mind

Now you point it out I do prefer the foo_(ALLOW_THIS_IN_INITIALIZER_LIST(this))
form, but it does seem it's much more common to do it the way I already have it.

http://codereview.chromium.org/604019/diff/3005/2011
File chrome/browser/geolocation/wifi_data_provider_common.h (right):

http://codereview.chromium.org/604019/diff/3005/2011#newcode120
chrome/browser/geolocation/wifi_data_provider_common.h:120: 
On 2010/02/14 22:09:27, Jeremy Orlow wrote:
> 2 newlines

Done.

Powered by Google App Engine
This is Rietveld 408576698