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

Unified Diff: net/base/net_util_win.cc

Issue 594973002: Remove implicit HANDLE conversions from net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util_win.cc
diff --git a/net/base/net_util_win.cc b/net/base/net_util_win.cc
index 6f331ec2d05a08ae9baa71be0730149f8ed82870..e51101802be6cee6bc078c53f2916e4655e1099a 100644
--- a/net/base/net_util_win.cc
+++ b/net/base/net_util_win.cc
@@ -261,7 +261,8 @@ WifiPHYLayerProtocol GetWifiPHYLayerProtocol() {
return WIFI_PHY_LAYER_PROTOCOL_NONE;
WLAN_INTERFACE_INFO_LIST* interface_list_ptr = NULL;
- result = wlanapi.enum_interfaces_func(client, NULL, &interface_list_ptr);
+ result = wlanapi.enum_interfaces_func(client.Get(), NULL,
+ &interface_list_ptr);
if (result != ERROR_SUCCESS)
return WIFI_PHY_LAYER_PROTOCOL_NONE;
scoped_ptr<WLAN_INTERFACE_INFO_LIST, WlanApiDeleter> interface_list(
@@ -284,8 +285,9 @@ WifiPHYLayerProtocol GetWifiPHYLayerProtocol() {
DWORD conn_info_size = 0;
WLAN_OPCODE_VALUE_TYPE op_code;
result = wlanapi.query_interface_func(
- client, &info->InterfaceGuid, wlan_intf_opcode_current_connection, NULL,
- &conn_info_size, reinterpret_cast<VOID**>(&conn_info_ptr), &op_code);
+ client.Get(), &info->InterfaceGuid, wlan_intf_opcode_current_connection,
+ NULL, &conn_info_size, reinterpret_cast<VOID**>(&conn_info_ptr),
+ &op_code);
if (result != ERROR_SUCCESS)
return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN;
scoped_ptr<WLAN_CONNECTION_ATTRIBUTES, WlanApiDeleter> conn_info(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698