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

Unified Diff: extensions/common/event_filter.cc

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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 | « extensions/common/event_filter.h ('k') | extensions/common/event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/event_filter.cc
diff --git a/extensions/common/event_filter.cc b/extensions/common/event_filter.cc
index 955671c20c42ef4cc87a783a6452e95917b971a1..2a16678cbdf2026aa6e327bd73861f27fb8f7490 100644
--- a/extensions/common/event_filter.cc
+++ b/extensions/common/event_filter.cc
@@ -17,7 +17,7 @@ using url_matcher::URLMatcherFactory;
namespace extensions {
EventFilter::EventMatcherEntry::EventMatcherEntry(
- scoped_ptr<EventMatcher> event_matcher,
+ std::unique_ptr<EventMatcher> event_matcher,
URLMatcher* url_matcher,
const URLMatcherConditionSet::Vector& condition_sets)
: event_matcher_(std::move(event_matcher)), url_matcher_(url_matcher) {
@@ -53,9 +53,9 @@ EventFilter::~EventFilter() {
}
}
-EventFilter::MatcherID
-EventFilter::AddEventMatcher(const std::string& event_name,
- scoped_ptr<EventMatcher> matcher) {
+EventFilter::MatcherID EventFilter::AddEventMatcher(
+ const std::string& event_name,
+ std::unique_ptr<EventMatcher> matcher) {
MatcherID id = next_id_++;
URLMatcherConditionSet::Vector condition_sets;
if (!CreateConditionSets(id, matcher.get(), &condition_sets))
« no previous file with comments | « extensions/common/event_filter.h ('k') | extensions/common/event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698