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

Unified Diff: net/dns/mdns_client_impl.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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/dns/mock_host_resolver.cc » ('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 ac13bf5a311797127c9b5d4b3fa58860048b5065..c00247ebed49c813f70a580af8927b2caff79f0f 100644
--- a/net/dns/mdns_client_impl.cc
+++ b/net/dns/mdns_client_impl.cc
@@ -8,7 +8,6 @@
#include <queue>
#include "base/bind.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/stl_util.h"
#include "base/time/clock.h"
#include "base/time/default_clock.h"
@@ -341,14 +340,16 @@ 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>();
+ if (observer_insert_result.second) {
+ 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/dns/mock_host_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698