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

Unified Diff: net/dns/mdns_client_impl.cc

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 7 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/dns/mdns_client_impl.h ('k') | net/log/net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mdns_client_impl.cc
diff --git a/net/dns/mdns_client_impl.cc b/net/dns/mdns_client_impl.cc
index b4cae7c366f99dbd4137e324801ef2843b36dbca..2fe89b1b046e9c72f5097984f34e6b2c31ffc1d7 100644
--- a/net/dns/mdns_client_impl.cc
+++ b/net/dns/mdns_client_impl.cc
@@ -341,14 +341,15 @@ void MDnsClientImpl::Core::AddListener(
MDnsListenerImpl* listener) {
ListenerKey key(listener->GetName(), listener->GetType());
std::pair<ListenerMap::iterator, bool> observer_insert_result =
- listeners_.insert(
- make_pair(key, static_cast<ObserverList<MDnsListenerImpl>*>(NULL)));
+ listeners_.insert(make_pair(
+ key, static_cast<base::ObserverList<MDnsListenerImpl>*>(NULL)));
// If an equivalent key does not exist, actually create the observer list.
if (observer_insert_result.second)
- observer_insert_result.first->second = new ObserverList<MDnsListenerImpl>();
+ observer_insert_result.first->second =
+ new base::ObserverList<MDnsListenerImpl>();
- ObserverList<MDnsListenerImpl>* observer_list =
+ base::ObserverList<MDnsListenerImpl>* observer_list =
observer_insert_result.first->second;
observer_list->AddObserver(listener);
« no previous file with comments | « net/dns/mdns_client_impl.h ('k') | net/log/net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698