| Index: net/base/network_interfaces_win.cc
|
| diff --git a/net/base/network_interfaces_win.cc b/net/base/network_interfaces_win.cc
|
| index fd119942261f0ef8ad98f85fa711b99fe5f45924..d64fd98f6efc8e94cde6d8fa98bbff4b129f281b 100644
|
| --- a/net/base/network_interfaces_win.cc
|
| +++ b/net/base/network_interfaces_win.cc
|
| @@ -54,20 +54,20 @@ GetConnectionAttributes() {
|
| scoped_ptr<WLAN_CONNECTION_ATTRIBUTES, internal::WlanApiDeleter>
|
| wlan_connection_attributes;
|
| if (!wlanapi.initialized)
|
| - return wlan_connection_attributes.Pass();
|
| + return wlan_connection_attributes;
|
|
|
| internal::WlanHandle client;
|
| DWORD cur_version = 0;
|
| const DWORD kMaxClientVersion = 2;
|
| DWORD result = wlanapi.OpenHandle(kMaxClientVersion, &cur_version, &client);
|
| if (result != ERROR_SUCCESS)
|
| - return wlan_connection_attributes.Pass();
|
| + return wlan_connection_attributes;
|
|
|
| WLAN_INTERFACE_INFO_LIST* interface_list_ptr = NULL;
|
| result =
|
| wlanapi.enum_interfaces_func(client.Get(), NULL, &interface_list_ptr);
|
| if (result != ERROR_SUCCESS)
|
| - return wlan_connection_attributes.Pass();
|
| + return wlan_connection_attributes;
|
| scoped_ptr<WLAN_INTERFACE_INFO_LIST, internal::WlanApiDeleter> interface_list(
|
| interface_list_ptr);
|
|
|
| @@ -82,7 +82,7 @@ GetConnectionAttributes() {
|
| }
|
|
|
| if (info == NULL)
|
| - return wlan_connection_attributes.Pass();
|
| + return wlan_connection_attributes;
|
|
|
| WLAN_CONNECTION_ATTRIBUTES* conn_info_ptr = nullptr;
|
| DWORD conn_info_size = 0;
|
| @@ -96,7 +96,7 @@ GetConnectionAttributes() {
|
| DCHECK(conn_info_ptr);
|
| else
|
| wlan_connection_attributes.reset();
|
| - return wlan_connection_attributes.Pass();
|
| + return wlan_connection_attributes;
|
| }
|
|
|
| } // namespace
|
|
|