Commit 2297597b authored by rvargas's avatar rvargas Committed by Commit bot

Remove implicit HANDLE conversions from net (new ones).

BUG=416722
R=rtenneti@chromium.org

Review URL: https://codereview.chromium.org/605513005

Cr-Commit-Position: refs/heads/master@{#296610}
parent b5f04cac
...@@ -834,7 +834,8 @@ int GetWifiOptions() { ...@@ -834,7 +834,8 @@ int GetWifiOptions() {
return -1; return -1;
WLAN_INTERFACE_INFO_LIST* interface_list_ptr = NULL; 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) if (result != ERROR_SUCCESS)
return -1; return -1;
scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> interface_list( scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> interface_list(
...@@ -846,7 +847,7 @@ int GetWifiOptions() { ...@@ -846,7 +847,7 @@ int GetWifiOptions() {
PVOID data; PVOID data;
int options = 0; int options = 0;
result = wlanapi.query_interface_func( result = wlanapi.query_interface_func(
client, client.Get(),
&info->InterfaceGuid, &info->InterfaceGuid,
wlan_intf_opcode_background_scan_enabled, wlan_intf_opcode_background_scan_enabled,
NULL, NULL,
...@@ -861,7 +862,7 @@ int GetWifiOptions() { ...@@ -861,7 +862,7 @@ int GetWifiOptions() {
internal::WlanApi::GetInstance().free_memory_func(data); internal::WlanApi::GetInstance().free_memory_func(data);
result = wlanapi.query_interface_func( result = wlanapi.query_interface_func(
client, client.Get(),
&info->InterfaceGuid, &info->InterfaceGuid,
wlan_intf_opcode_media_streaming_mode, wlan_intf_opcode_media_streaming_mode,
NULL, NULL,
......
...@@ -286,7 +286,8 @@ class WifiOptionSetter : public ScopedWifiOptions { ...@@ -286,7 +286,8 @@ class WifiOptionSetter : public ScopedWifiOptions {
return; return;
WLAN_INTERFACE_INFO_LIST* interface_list_ptr = NULL; 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) if (result != ERROR_SUCCESS)
return; return;
scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter>
...@@ -296,7 +297,7 @@ class WifiOptionSetter : public ScopedWifiOptions { ...@@ -296,7 +297,7 @@ class WifiOptionSetter : public ScopedWifiOptions {
WLAN_INTERFACE_INFO* info = &interface_list->InterfaceInfo[i]; WLAN_INTERFACE_INFO* info = &interface_list->InterfaceInfo[i];
if (options & WIFI_OPTIONS_DISABLE_SCAN) { if (options & WIFI_OPTIONS_DISABLE_SCAN) {
BOOL data = false; BOOL data = false;
wlanapi.set_interface_func(client_, wlanapi.set_interface_func(client_.Get(),
&info->InterfaceGuid, &info->InterfaceGuid,
wlan_intf_opcode_background_scan_enabled, wlan_intf_opcode_background_scan_enabled,
sizeof(data), sizeof(data),
...@@ -305,7 +306,7 @@ class WifiOptionSetter : public ScopedWifiOptions { ...@@ -305,7 +306,7 @@ class WifiOptionSetter : public ScopedWifiOptions {
} }
if (options & WIFI_OPTIONS_MEDIA_STREAMING_MODE) { if (options & WIFI_OPTIONS_MEDIA_STREAMING_MODE) {
BOOL data = true; BOOL data = true;
wlanapi.set_interface_func(client_, wlanapi.set_interface_func(client_.Get(),
&info->InterfaceGuid, &info->InterfaceGuid,
wlan_intf_opcode_media_streaming_mode, wlan_intf_opcode_media_streaming_mode,
sizeof(data), sizeof(data),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment