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

Unified Diff: components/user_prefs/tracked/pref_hash_filter_unittest.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
Index: components/user_prefs/tracked/pref_hash_filter_unittest.cc
diff --git a/components/user_prefs/tracked/pref_hash_filter_unittest.cc b/components/user_prefs/tracked/pref_hash_filter_unittest.cc
index dfd33248dec9ea3475fb24fa8bf4e8af07ba01c1..9eceefcb1a7a2e23f2ed78da495c3625463912dd 100644
--- a/components/user_prefs/tracked/pref_hash_filter_unittest.cc
+++ b/components/user_prefs/tracked/pref_hash_filter_unittest.cc
@@ -388,7 +388,7 @@ class PrefHashFilterTest
new MockPrefHashStore);
mock_pref_hash_store_ = temp_mock_pref_hash_store.get();
pref_hash_filter_.reset(new PrefHashFilter(
- temp_mock_pref_hash_store.Pass(), configuration,
+ std::move(temp_mock_pref_hash_store), configuration,
base::Bind(&PrefHashFilterTest::RecordReset, base::Unretained(this)),
&mock_validation_delegate_, arraysize(kTestTrackedPrefs), true));
}
@@ -410,7 +410,7 @@ class PrefHashFilterTest
pref_hash_filter_->FilterOnLoad(
base::Bind(&PrefHashFilterTest::GetPrefsBack, base::Unretained(this),
expect_prefs_modifications),
- pref_store_contents_.Pass());
+ std::move(pref_store_contents_));
}
MockPrefHashStore* mock_pref_hash_store_;
@@ -424,7 +424,7 @@ class PrefHashFilterTest
void GetPrefsBack(bool expected_schedule_write,
scoped_ptr<base::DictionaryValue> prefs,
bool schedule_write) {
- pref_store_contents_ = prefs.Pass();
+ pref_store_contents_ = std::move(prefs);
EXPECT_TRUE(pref_store_contents_);
EXPECT_EQ(expected_schedule_write, schedule_write);
}
« no previous file with comments | « components/user_prefs/tracked/pref_hash_filter.cc ('k') | components/user_prefs/tracked/pref_hash_store_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698