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

Unified Diff: components/user_prefs/tracked/interceptable_pref_filter.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/url_matcher/url_matcher_unittest.cc ('k') | components/user_prefs/tracked/pref_hash_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_prefs/tracked/interceptable_pref_filter.cc
diff --git a/components/user_prefs/tracked/interceptable_pref_filter.cc b/components/user_prefs/tracked/interceptable_pref_filter.cc
index 180ee7e993c78e3bd9e722f5a6211b1bdfff7c71..cfe081d986813b1267375ab631485082070135bb 100644
--- a/components/user_prefs/tracked/interceptable_pref_filter.cc
+++ b/components/user_prefs/tracked/interceptable_pref_filter.cc
@@ -4,6 +4,8 @@
#include "components/user_prefs/tracked/interceptable_pref_filter.h"
+#include <utility>
+
#include "base/bind.h"
InterceptablePrefFilter::InterceptablePrefFilter() {
@@ -16,7 +18,7 @@ void InterceptablePrefFilter::FilterOnLoad(
scoped_ptr<base::DictionaryValue> pref_store_contents) {
if (filter_on_load_interceptor_.is_null()) {
FinalizeFilterOnLoad(post_filter_on_load_callback,
- pref_store_contents.Pass(), false);
+ std::move(pref_store_contents), false);
} else {
// Note, in practice (in the implementation as it was in May 2014) it would
// be okay to pass an unretained |this| pointer below, but in order to avoid
@@ -27,7 +29,7 @@ void InterceptablePrefFilter::FilterOnLoad(
base::Bind(&InterceptablePrefFilter::FinalizeFilterOnLoad, AsWeakPtr(),
post_filter_on_load_callback));
filter_on_load_interceptor_.Run(finalize_filter_on_load,
- pref_store_contents.Pass());
+ std::move(pref_store_contents));
filter_on_load_interceptor_.Reset();
}
}
« no previous file with comments | « components/url_matcher/url_matcher_unittest.cc ('k') | components/user_prefs/tracked/pref_hash_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698