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

Unified Diff: chrome/browser/extensions/api/mdns/dns_sd_registry.h

Issue 2466523002: Remove some linked_ptr c/b/extension (Closed)
Patch Set: review Created 4 years, 1 month 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
Index: chrome/browser/extensions/api/mdns/dns_sd_registry.h
diff --git a/chrome/browser/extensions/api/mdns/dns_sd_registry.h b/chrome/browser/extensions/api/mdns/dns_sd_registry.h
index d85f297fdc57b70871dbec31fda5b8d52e9d9dde..4f342684288dcf6015ecb1519cdf135d6e816659 100644
--- a/chrome/browser/extensions/api/mdns/dns_sd_registry.h
+++ b/chrome/browser/extensions/api/mdns/dns_sd_registry.h
@@ -12,7 +12,6 @@
#include <vector>
#include "base/macros.h"
-#include "base/memory/linked_ptr.h"
#include "base/observer_list.h"
#include "chrome/browser/extensions/api/mdns/dns_sd_delegate.h"
@@ -94,10 +93,6 @@ class DnsSdRegistry : public DnsSdDelegate {
DISALLOW_COPY_AND_ASSIGN(ServiceTypeData);
};
- // Maps service types to associated data such as listers and service lists.
- typedef std::map<std::string, linked_ptr<ServiceTypeData> >
- DnsSdServiceTypeDataMap;
-
virtual DnsSdDeviceLister* CreateDnsSdDeviceLister(
DnsSdDelegate* delegate,
const std::string& service_type,
@@ -111,7 +106,7 @@ class DnsSdRegistry : public DnsSdDelegate {
const std::string& service_name) override;
void ServicesFlushed(const std::string& service_type) override;
- DnsSdServiceTypeDataMap service_data_map_;
+ std::map<std::string, std::unique_ptr<ServiceTypeData>> service_data_map_;
private:
void DispatchApiEvent(const std::string& service_type);
« no previous file with comments | « chrome/browser/extensions/api/gcd_private/gcd_private_api.cc ('k') | chrome/browser/extensions/api/mdns/dns_sd_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698