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

Side by Side Diff: net/base/network_change_notifier_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/keygen_handler_win.cc ('k') | net/base/network_interfaces_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_change_notifier_win.h" 5 #include "net/base/network_change_notifier_win.h"
6 6
7 #include <iphlpapi.h> 7 #include <iphlpapi.h>
8 #include <winsock2.h> 8 #include <winsock2.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "net/base/winsock_init.h" 16 #include "net/base/winsock_init.h"
17 #include "net/base/winsock_util.h" 17 #include "net/base/winsock_util.h"
18 #include "net/dns/dns_config_service.h" 18 #include "net/dns/dns_config_service.h"
19 19
20 #pragma comment(lib, "iphlpapi.lib")
21
22 namespace net { 20 namespace net {
23 21
24 namespace { 22 namespace {
25 23
26 // Time between NotifyAddrChange retries, on failure. 24 // Time between NotifyAddrChange retries, on failure.
27 const int kWatchForAddressChangeRetryIntervalMs = 500; 25 const int kWatchForAddressChangeRetryIntervalMs = 500;
28 26
29 } // namespace 27 } // namespace
30 28
31 // Thread on which we can run DnsConfigService, which requires AssertIOAllowed 29 // Thread on which we can run DnsConfigService, which requires AssertIOAllowed
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 320
323 NotifyObserversOfConnectionTypeChange(); 321 NotifyObserversOfConnectionTypeChange();
324 double max_bandwidth_mbps = 0.0; 322 double max_bandwidth_mbps = 0.0;
325 ConnectionType connection_type = CONNECTION_NONE; 323 ConnectionType connection_type = CONNECTION_NONE;
326 GetCurrentMaxBandwidthAndConnectionType(&max_bandwidth_mbps, 324 GetCurrentMaxBandwidthAndConnectionType(&max_bandwidth_mbps,
327 &connection_type); 325 &connection_type);
328 NotifyObserversOfMaxBandwidthChange(max_bandwidth_mbps, connection_type); 326 NotifyObserversOfMaxBandwidthChange(max_bandwidth_mbps, connection_type);
329 } 327 }
330 328
331 } // namespace net 329 } // namespace net
OLDNEW
« no previous file with comments | « net/base/keygen_handler_win.cc ('k') | net/base/network_interfaces_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698