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

Unified Diff: components/password_manager/core/browser/password_manager_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/core/browser/password_manager_unittest.cc
diff --git a/components/password_manager/core/browser/password_manager_unittest.cc b/components/password_manager/core/browser/password_manager_unittest.cc
index fb3fdc768121030af3add611e54a06ec22654195..734b15a06249e866e90df7247d92f8cb95fb6635 100644
--- a/components/password_manager/core/browser/password_manager_unittest.cc
+++ b/components/password_manager/core/browser/password_manager_unittest.cc
@@ -5,6 +5,7 @@
#include "components/password_manager/core/browser/password_manager.h"
#include <string>
+#include <utility>
#include <vector>
#include "base/command_line.h"
@@ -47,7 +48,7 @@ class MockStoreResultFilter : public CredentialsFilter {
ScopedVector<autofill::PasswordForm> FilterResults(
ScopedVector<autofill::PasswordForm> results) const override {
FilterResultsPtr(&results);
- return results.Pass();
+ return results;
}
};
@@ -101,7 +102,7 @@ class MockPasswordManagerDriver : public StubPasswordManagerDriver {
ACTION_P(InvokeConsumer, form) {
ScopedVector<PasswordForm> result;
result.push_back(make_scoped_ptr(new PasswordForm(form)));
- arg0->OnGetPasswordStoreResults(result.Pass());
+ arg0->OnGetPasswordStoreResults(std::move(result));
}
ACTION(InvokeEmptyConsumerWithForms) {

Powered by Google App Engine
This is Rietveld 408576698