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() {
return -1;
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 -1;
scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> interface_list(
......@@ -846,7 +847,7 @@ int GetWifiOptions() {
PVOID data;
int options = 0;
result = wlanapi.query_interface_func(
client,
client.Get(),
&info->InterfaceGuid,
wlan_intf_opcode_background_scan_enabled,
NULL,
......@@ -861,7 +862,7 @@ int GetWifiOptions() {
internal::WlanApi::GetInstance().free_memory_func(data);
result = wlanapi.query_interface_func(
client,
client.Get(),
&info->InterfaceGuid,
wlan_intf_opcode_media_streaming_mode,
NULL,
......
......@@ -286,7 +286,8 @@ class WifiOptionSetter : public ScopedWifiOptions {
return;
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;
scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter>
......@@ -296,7 +297,7 @@ class WifiOptionSetter : public ScopedWifiOptions {
WLAN_INTERFACE_INFO* info = &interface_list->InterfaceInfo[i];
if (options & WIFI_OPTIONS_DISABLE_SCAN) {
BOOL data = false;
wlanapi.set_interface_func(client_,
wlanapi.set_interface_func(client_.Get(),
&info->InterfaceGuid,
wlan_intf_opcode_background_scan_enabled,
sizeof(data),
......@@ -305,7 +306,7 @@ class WifiOptionSetter : public ScopedWifiOptions {
}
if (options & WIFI_OPTIONS_MEDIA_STREAMING_MODE) {
BOOL data = true;
wlanapi.set_interface_func(client_,
wlanapi.set_interface_func(client_.Get(),
&info->InterfaceGuid,
wlan_intf_opcode_media_streaming_mode,
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