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

Unified Diff: net/base/net_util_win.cc

Issue 605513005: Remove implicit HANDLE conversions from net (new ones). (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 | « net/base/net_util_unittest.cc ('k') | 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 47e167b6d56858b54e8ee3e60f44f8cfd6149841..7d146b91e511f2f3ba1c8f213ea90eb2652b3e4b 100644
--- a/net/base/net_util_win.cc
+++ b/net/base/net_util_win.cc
@@ -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),
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698