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

Unified Diff: net/base/network_change_notifier.cc

Issue 877993003: Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/android/network_change_notifier_delegate_android.cc ('k') | net/cert/cert_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier.cc
diff --git a/net/base/network_change_notifier.cc b/net/base/network_change_notifier.cc
index ec45a4e2ea458e0887e0fcad68bf56bf29c1d1a0..3ec6369fc47019b1e0933d0938c7e0d40d8edfe8 100644
--- a/net/base/network_change_notifier.cc
+++ b/net/base/network_change_notifier.cc
@@ -949,29 +949,31 @@ void NetworkChangeNotifier::SetDnsConfig(const DnsConfig& config) {
}
void NetworkChangeNotifier::NotifyObserversOfIPAddressChangeImpl() {
- ip_address_observer_list_->Notify(&IPAddressObserver::OnIPAddressChanged);
+ ip_address_observer_list_->Notify(FROM_HERE,
+ &IPAddressObserver::OnIPAddressChanged);
}
void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeImpl(
ConnectionType type) {
connection_type_observer_list_->Notify(
- &ConnectionTypeObserver::OnConnectionTypeChanged, type);
+ FROM_HERE, &ConnectionTypeObserver::OnConnectionTypeChanged, type);
}
void NetworkChangeNotifier::NotifyObserversOfNetworkChangeImpl(
ConnectionType type) {
network_change_observer_list_->Notify(
- &NetworkChangeObserver::OnNetworkChanged, type);
+ FROM_HERE, &NetworkChangeObserver::OnNetworkChanged, type);
}
void NetworkChangeNotifier::NotifyObserversOfDNSChangeImpl() {
- resolver_state_observer_list_->Notify(&DNSObserver::OnDNSChanged);
+ resolver_state_observer_list_->Notify(FROM_HERE, &DNSObserver::OnDNSChanged);
}
void NetworkChangeNotifier::NotifyObserversOfMaxBandwidthChangeImpl(
double max_bandwidth_mbps) {
max_bandwidth_observer_list_->Notify(
- &MaxBandwidthObserver::OnMaxBandwidthChanged, max_bandwidth_mbps);
+ FROM_HERE, &MaxBandwidthObserver::OnMaxBandwidthChanged,
+ max_bandwidth_mbps);
}
NetworkChangeNotifier::DisableForTest::DisableForTest()
« no previous file with comments | « net/android/network_change_notifier_delegate_android.cc ('k') | net/cert/cert_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698