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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/ui/passwords/password_manager_presenter.cc
diff --git a/chrome/browser/ui/passwords/password_manager_presenter.cc b/chrome/browser/ui/passwords/password_manager_presenter.cc
index 30bcbe613bfd12754560f4694a2cbebc426fce6a..5441f21697b5122af685f92e26e16529825d48d6 100644
--- a/chrome/browser/ui/passwords/password_manager_presenter.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/passwords/password_manager_presenter.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/command_line.h"
#include "base/metrics/user_metrics_action.h"
@@ -243,7 +245,7 @@ void PasswordManagerPresenter::PasswordListPopulater::Populate() {
void PasswordManagerPresenter::PasswordListPopulater::OnGetPasswordStoreResults(
ScopedVector<autofill::PasswordForm> results) {
page_->password_list_ =
- password_manager_util::ConvertScopedVector(results.Pass());
+ password_manager_util::ConvertScopedVector(std::move(results));
page_->SetPasswordList();
}
@@ -265,6 +267,6 @@ void PasswordManagerPresenter::PasswordExceptionListPopulater::Populate() {
void PasswordManagerPresenter::PasswordExceptionListPopulater::
OnGetPasswordStoreResults(ScopedVector<autofill::PasswordForm> results) {
page_->password_exception_list_ =
- password_manager_util::ConvertScopedVector(results.Pass());
+ password_manager_util::ConvertScopedVector(std::move(results));
page_->SetPasswordExceptionList();
}

Powered by Google App Engine
This is Rietveld 408576698