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

Unified Diff: components/password_manager/core/browser/login_database.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/login_database.cc
diff --git a/components/password_manager/core/browser/login_database.cc b/components/password_manager/core/browser/login_database.cc
index 525ddb45fcd1f77cb5a7c8344310efab842ee1eb..36617d9e9be38cdd9b9446719d3fabd433992e8d 100644
--- a/components/password_manager/core/browser/login_database.cc
+++ b/components/password_manager/core/browser/login_database.cc
@@ -6,9 +6,9 @@
#include <stddef.h>
#include <stdint.h>
-
#include <algorithm>
#include <limits>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_path.h"
@@ -1287,7 +1287,7 @@ bool LoginDatabase::StatementToForms(
psl_domain_match_metric = PSL_DOMAIN_MATCH_FOUND;
new_form->is_public_suffix_match = true;
}
- forms->push_back(new_form.Pass());
+ forms->push_back(std::move(new_form));
}
if (psl_match) {

Powered by Google App Engine
This is Rietveld 408576698