Index: components/url_matcher/url_matcher.cc |
diff --git a/components/url_matcher/url_matcher.cc b/components/url_matcher/url_matcher.cc |
index 67fc3f6f4abb33af871b60f0505cae8285a4c461..5281c9ff03a6760644506a1d42d99251d53c93af 100644 |
--- a/components/url_matcher/url_matcher.cc |
+++ b/components/url_matcher/url_matcher.cc |
@@ -6,6 +6,7 @@ |
#include <algorithm> |
#include <iterator> |
+#include <utility> |
#include "base/logging.h" |
#include "base/stl_util.h" |
@@ -742,8 +743,8 @@ URLMatcherConditionSet::URLMatcherConditionSet( |
scoped_ptr<URLMatcherPortFilter> port_filter) |
: id_(id), |
conditions_(conditions), |
- scheme_filter_(scheme_filter.Pass()), |
- port_filter_(port_filter.Pass()) {} |
+ scheme_filter_(std::move(scheme_filter)), |
+ port_filter_(std::move(port_filter)) {} |
URLMatcherConditionSet::URLMatcherConditionSet( |
ID id, |
@@ -754,8 +755,8 @@ URLMatcherConditionSet::URLMatcherConditionSet( |
: id_(id), |
conditions_(conditions), |
query_conditions_(query_conditions), |
- scheme_filter_(scheme_filter.Pass()), |
- port_filter_(port_filter.Pass()) {} |
+ scheme_filter_(std::move(scheme_filter)), |
+ port_filter_(std::move(port_filter)) {} |
bool URLMatcherConditionSet::IsMatch( |
const std::set<StringPattern::ID>& matching_patterns, |