Index: components/password_manager/sync/browser/sync_credentials_filter_unittest.cc |
diff --git a/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc b/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc |
index 1efcba1eedda21c31f83a6a801ac570e79c458db..cc43857f56f56f3d40e60d7a36ccf667d97bc4f3 100644 |
--- a/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc |
+++ b/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc |
@@ -5,6 +5,7 @@ |
#include "components/password_manager/sync/browser/sync_credentials_filter.h" |
#include <stddef.h> |
+#include <utility> |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
@@ -43,7 +44,7 @@ class FakePasswordManagerClient : public StubPasswordManagerClient { |
bool IsFormFiltered(const CredentialsFilter* filter, const PasswordForm& form) { |
ScopedVector<PasswordForm> vector; |
vector.push_back(new PasswordForm(form)); |
- vector = filter->FilterResults(vector.Pass()); |
+ vector = filter->FilterResults(std::move(vector)); |
return vector.empty(); |
} |
@@ -257,7 +258,7 @@ TEST_F(CredentialsFilterTest, ShouldFilterOneForm) { |
FakeSigninAs("test1@gmail.com"); |
- results = filter()->FilterResults(results.Pass()); |
+ results = filter()->FilterResults(std::move(results)); |
ASSERT_EQ(1u, results.size()); |
EXPECT_EQ(SimpleGaiaForm("test2@gmail.com"), *results[0]); |