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

Side by Side Diff: net/base/network_interfaces_win.cc

Issue 1844793007: Remove "#pragma comment(lib" in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « net/base/network_change_notifier_win.cc ('k') | net/cert/cert_database_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/network_interfaces_win.h" 5 #include "net/base/network_interfaces_win.h"
6 6
7 #pragma comment(lib, "iphlpapi.lib")
8
9 #include <algorithm> 7 #include <algorithm>
10 8
11 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
12 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
13 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
14 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
15 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
16 #include "base/strings/sys_string_conversions.h" 14 #include "base/strings/sys_string_conversions.h"
17 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
18 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 337
340 if (!conn_info.get()) 338 if (!conn_info.get())
341 return ""; 339 return "";
342 340
343 const DOT11_SSID dot11_ssid = conn_info->wlanAssociationAttributes.dot11Ssid; 341 const DOT11_SSID dot11_ssid = conn_info->wlanAssociationAttributes.dot11Ssid;
344 return std::string(reinterpret_cast<const char*>(dot11_ssid.ucSSID), 342 return std::string(reinterpret_cast<const char*>(dot11_ssid.ucSSID),
345 dot11_ssid.uSSIDLength); 343 dot11_ssid.uSSIDLength);
346 } 344 }
347 345
348 } // namespace net 346 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_change_notifier_win.cc ('k') | net/cert/cert_database_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698