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

Issue 6696022: Refactor WifiDataProviderChromeOs to implement WifiDataProviderImplBase directly. (Closed)

Created:
9 years, 9 months ago by John Knottenbelt
Modified:
9 years, 7 months ago
Reviewers:
bulach, stevenjb
CC:
chromium-reviews, jam
Visibility:
Public.

Description

Refactor WifiDataProviderChromeOs to implement WifiDataProviderImplBase directly and delegate the scan occur on the UI thread as currently required by Chromium OS. BUG=chromium-os:13049 TEST=Existing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78540

Patch Set 1 #

Total comments: 6

Patch Set 2 : Use the geolocation thread #

Total comments: 9

Patch Set 3 : Marcus, Steven Review #

Patch Set 4 : Fix GeolocationDeviceDataProviderWifiData.CreateDestroy unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -6 lines) Patch
M content/browser/geolocation/device_data_provider.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/geolocation/wifi_data_provider_chromeos.h View 1 2 1 chunk +32 lines, -3 lines 0 comments Download
M content/browser/geolocation/wifi_data_provider_chromeos.cc View 1 2 3 3 chunks +87 lines, -1 line 0 comments Download
M content/browser/geolocation/wifi_data_provider_common.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/geolocation/wifi_data_provider_common.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
John Knottenbelt
Hi Marcus, Can you take a look at this and let me know your thoughts. ...
9 years, 9 months ago (2011-03-15 16:29:12 UTC) #1
bulach
thanks john! a few nits, and a possible deal breaker concern, please let me know ...
9 years, 9 months ago (2011-03-15 18:37:51 UTC) #2
stevenjb
http://codereview.chromium.org/6696022/diff/1/content/browser/geolocation/wifi_data_provider_chromeos.cc File content/browser/geolocation/wifi_data_provider_chromeos.cc (right): http://codereview.chromium.org/6696022/diff/1/content/browser/geolocation/wifi_data_provider_chromeos.cc#newcode85 content/browser/geolocation/wifi_data_provider_chromeos.cc:85: CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); As bulach@ suggests, this CHECK gets triggered on ...
9 years, 9 months ago (2011-03-16 01:06:26 UTC) #3
John Knottenbelt
This patch keeps most of the logic on the Geolocation thread, delegating to the UI ...
9 years, 9 months ago (2011-03-16 16:18:27 UTC) #4
stevenjb
This patch seems to do the trick. I am working on a patch that will ...
9 years, 9 months ago (2011-03-16 17:46:56 UTC) #5
bulach
LGTM good stuff, thanks john! a few comments below consolidating our chat: http://codereview.chromium.org/6696022/diff/4001/content/browser/geolocation/wifi_data_provider_chromeos.cc File content/browser/geolocation/wifi_data_provider_chromeos.cc ...
9 years, 9 months ago (2011-03-16 18:01:00 UTC) #6
John Knottenbelt
This includes Steven and Marcus' suggestions. http://codereview.chromium.org/6696022/diff/4001/content/browser/geolocation/device_data_provider.h File content/browser/geolocation/device_data_provider.h (right): http://codereview.chromium.org/6696022/diff/4001/content/browser/geolocation/device_data_provider.h#newcode235 content/browser/geolocation/device_data_provider.h:235: MessageLoop* client_loop_; On ...
9 years, 9 months ago (2011-03-16 18:20:14 UTC) #7
bulach
LGTM thanks, John! Steven, would you mind trying the latest patch please?
9 years, 9 months ago (2011-03-16 18:26:00 UTC) #8
stevenjb
Tested the patch in Debug mode to catch any DCHECKs. No issues, looks good. Do ...
9 years, 9 months ago (2011-03-16 19:50:31 UTC) #9
stevenjb
I spoke too soon. A Debug build is now failing here: ... NetworkLibraryImpl::GetWifiAccessPoints() NetworkLibraryWlanApi::GetAccessPointData() WifiDataProviderCommon::DoWifiScanTask() ...
9 years, 9 months ago (2011-03-16 20:56:01 UTC) #10
stevenjb
Sorry, that' can't be right, this must not have the patch. Hang on while I ...
9 years, 9 months ago (2011-03-16 21:01:47 UTC) #11
stevenjb
OK, my first testing round was correct, all is well. Cheers!
9 years, 9 months ago (2011-03-16 21:09:17 UTC) #12
stevenjb
Also, this is a top ChromeOS crasher for R11, so please drover this to the ...
9 years, 9 months ago (2011-03-16 21:29:46 UTC) #13
John Knottenbelt
This solves the Geolocation test failure. The other test failures appear to be unrelated.
9 years, 9 months ago (2011-03-17 13:59:25 UTC) #14
John Knottenbelt
9 years, 9 months ago (2011-03-17 16:04:25 UTC) #15
This has now been committed to Chrome trunk (r78540) and to branch 696 (r78553)

Powered by Google App Engine
This is Rietveld 408576698