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

Unified Diff: extensions/common/event_filter.h

Issue 2500573003: Some easy linked_ptr removal from extensions/common/ (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | extensions/common/event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/event_filter.h
diff --git a/extensions/common/event_filter.h b/extensions/common/event_filter.h
index 567c1d0867651121c8e051d56cb4d8f661567207..52bd1b043e36b21ea861811b8280697d925bea06 100644
--- a/extensions/common/event_filter.h
+++ b/extensions/common/event_filter.h
@@ -6,10 +6,10 @@
#define EXTENSIONS_COMMON_EVENT_FILTER_H_
#include <map>
+#include <memory>
#include <set>
#include "base/macros.h"
-#include "base/memory/linked_ptr.h"
#include "components/url_matcher/url_matcher.h"
#include "extensions/common/event_filtering_info.h"
#include "extensions/common/event_matcher.h"
@@ -88,10 +88,11 @@ class EventFilter {
};
// Maps from a matcher id to an event matcher entry.
- typedef std::map<MatcherID, linked_ptr<EventMatcherEntry> > EventMatcherMap;
+ using EventMatcherMap =
+ std::map<MatcherID, std::unique_ptr<EventMatcherEntry>>;
// Maps from event name to the map of matchers that are registered for it.
- typedef std::map<std::string, EventMatcherMap> EventMatcherMultiMap;
+ using EventMatcherMultiMap = std::map<std::string, EventMatcherMap>;
// Adds the list of URL filters in |matcher| to the URL matcher, having
// matches for those URLs map to |id|.
« no previous file with comments | « no previous file | extensions/common/event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698