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

Issue 2842613002: Geolocation Win: remove Xp/Vista specific WindowsNdisApi class (Closed)

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

Description

Geolocation Win: remove Xp/Vista specific WindowsNdisApi class This CL primarily removes the internal WindowsNdisApi class which is only meant to be used for the unsupported Win XP and Vista, and leaves only WindowWlanApi internal class in place. Furthermore it simplifies the remaining WindosWlanApi code by linking directly against wlanapi.dll, which makes unnecessary a number of other file-static functions, the factory method and the library functions defintiions and variables, yay! It also removes a chunk of file-static functions that became unused; only one GetNetworkData() remains. PS4 UPDATE: this CL actually could not remove the dynamic loading of wlan_api.dll because it's not available by default in some/all Server 2008 R2 installations, including some of our win_chromium_rel_ng slaves, which failed. See https://www.bonusbits.com/wiki/KB:Wlanapi.dll_missing_on_Windows_Server_2008_R2 (However, we can remove the WindowsNdisApi class because those Server2008R2 installations would explicitly enable WlanApi.dll to access Wifi anyway). BUG=714477 Review-Url: https://codereview.chromium.org/2842613002 Cr-Commit-Position: refs/heads/master@{#467807} Committed: https://chromium.googlesource.com/chromium/src/+/fddf5df3d84f5c32e2dff8296b875b180afe9f02

Patch Set 1 : #

Total comments: 6

Patch Set 2 : robliao@s comments - static lib loading #

Total comments: 12

Patch Set 3 : dougt@ and robliao@ nits #

Patch Set 4 : Restated dynamic loading of wlan_api.dll #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -428 lines) Patch
M device/geolocation/wifi_data_provider_win.cc View 1 2 3 6 chunks +98 lines, -428 lines 0 comments Download

Messages

Total messages: 43 (25 generated)
mcasas
robliao@ PTAL
3 years, 8 months ago (2017-04-24 23:52:33 UTC) #5
robliao
https://codereview.chromium.org/2842613002/diff/20001/device/geolocation/wifi_data_provider_win.cc File device/geolocation/wifi_data_provider_win.cc (right): https://codereview.chromium.org/2842613002/diff/20001/device/geolocation/wifi_data_provider_win.cc#newcode104 device/geolocation/wifi_data_provider_win.cc:104: DCHECK(base::win::GetVersion() >= base::win::VERSION_WIN7); Is this DCHECK important? I would ...
3 years, 8 months ago (2017-04-25 20:11:19 UTC) #7
mcasas
ptal (assuming bots are happy) https://codereview.chromium.org/2842613002/diff/20001/device/geolocation/wifi_data_provider_win.cc File device/geolocation/wifi_data_provider_win.cc (right): https://codereview.chromium.org/2842613002/diff/20001/device/geolocation/wifi_data_provider_win.cc#newcode104 device/geolocation/wifi_data_provider_win.cc:104: DCHECK(base::win::GetVersion() >= base::win::VERSION_WIN7); On ...
3 years, 8 months ago (2017-04-25 21:55:21 UTC) #9
mcasas
dougt@ PTAL (also, while waiting for robliao@ review)
3 years, 8 months ago (2017-04-25 23:46:36 UTC) #11
robliao
Windows Usage lgtm. Thanks for updating the code! https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc File device/geolocation/wifi_data_provider_win.cc (right): https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc#newcode28 device/geolocation/wifi_data_provider_win.cc:28: static ...
3 years, 8 months ago (2017-04-26 00:02:41 UTC) #12
dougt
lgtm w/ nits https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc File device/geolocation/wifi_data_provider_win.cc (left): https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc#oldcode245 device/geolocation/wifi_data_provider_win.cc:245: static const int kXpWlanClientVersion = 1; ...
3 years, 8 months ago (2017-04-26 00:15:47 UTC) #13
robliao
https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc File device/geolocation/wifi_data_provider_win.cc (left): https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc#oldcode245 device/geolocation/wifi_data_provider_win.cc:245: static const int kXpWlanClientVersion = 1; On 2017/04/26 00:15:47, ...
3 years, 8 months ago (2017-04-26 00:29:24 UTC) #14
mcasas
https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc File device/geolocation/wifi_data_provider_win.cc (left): https://codereview.chromium.org/2842613002/diff/40001/device/geolocation/wifi_data_provider_win.cc#oldcode312 device/geolocation/wifi_data_provider_win.cc:312: // According to http://www.attnetclient.com/kb/questions.php?questionid=75 On 2017/04/26 00:15:47, dougt wrote: ...
3 years, 8 months ago (2017-04-26 00:36:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842613002/80001
3 years, 8 months ago (2017-04-26 01:42:16 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/430245)
3 years, 8 months ago (2017-04-26 05:33:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842613002/80001
3 years, 8 months ago (2017-04-26 05:42:09 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/430364)
3 years, 8 months ago (2017-04-26 07:22:01 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842613002/80001
3 years, 8 months ago (2017-04-26 14:42:39 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/430584)
3 years, 8 months ago (2017-04-26 16:26:57 UTC) #33
mcasas
On 2017/04/26 16:26:57, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-04-27 20:52:18 UTC) #36
robliao
Still lgtm. Sorry that Server stopped the party!
3 years, 7 months ago (2017-04-27 21:03:53 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842613002/120001
3 years, 7 months ago (2017-04-27 21:44:11 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 01:43:15 UTC) #43
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/fddf5df3d84f5c32e2dff8296b87...

Powered by Google App Engine
This is Rietveld 408576698