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

Unified Diff: components/url_matcher/url_matcher.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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 | « components/update_client/url_fetcher_downloader.cc ('k') | components/url_matcher/url_matcher_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/update_client/url_fetcher_downloader.cc ('k') | components/url_matcher/url_matcher_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698