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

Unified Diff: components/password_manager/sync/browser/sync_credentials_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/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]);
« no previous file with comments | « components/password_manager/sync/browser/sync_credentials_filter.cc ('k') | components/pdf/browser/pdf_web_contents_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698