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

Unified Diff: chrome/browser/password_manager/password_store_x.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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/password_manager/password_store_x.cc
diff --git a/chrome/browser/password_manager/password_store_x.cc b/chrome/browser/password_manager/password_store_x.cc
index 186964ba4f1bd76e1be25889cce772d7b828c1a4..4417c306fc5a70c5cab99b38d86aac3e6f8cbfc0 100644
--- a/chrome/browser/password_manager/password_store_x.cc
+++ b/chrome/browser/password_manager/password_store_x.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <map>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -44,11 +45,10 @@ PasswordStoreX::PasswordStoreX(
NativeBackend* backend)
: PasswordStoreDefault(main_thread_runner,
db_thread_runner,
- login_db.Pass()),
+ std::move(login_db)),
backend_(backend),
migration_checked_(!backend),
- allow_fallback_(false) {
-}
+ allow_fallback_(false) {}
PasswordStoreX::~PasswordStoreX() {}
@@ -147,7 +147,7 @@ ScopedVector<autofill::PasswordForm> PasswordStoreX::FillMatchingLogins(
// until we perform a write operation, or until a read returns actual data.
if (!matched_forms.empty())
allow_fallback_ = false;
- return matched_forms.Pass();
+ return matched_forms;
}
if (allow_default_store())
return PasswordStoreDefault::FillMatchingLogins(form, prompt_policy);

Powered by Google App Engine
This is Rietveld 408576698