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

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

Issue 1752233002: Convert Pass()→std::move() on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 months 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_win.cc
diff --git a/chrome/browser/password_manager/password_store_win.cc b/chrome/browser/password_manager/password_store_win.cc
index 7fa51aa336fa7cc0562390ded118a5569dcda353..49993a9b3522481922a8f76dc3950baad7ec9b70 100644
--- a/chrome/browser/password_manager/password_store_win.cc
+++ b/chrome/browser/password_manager/password_store_win.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <map>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -138,7 +139,7 @@ ScopedVector<autofill::PasswordForm> PasswordStoreWin::DBHandler::GetIE7Results(
}
}
}
- return matched_forms.Pass();
+ return matched_forms;
}
void PasswordStoreWin::DBHandler::OnWebDataServiceRequestDone(
@@ -177,7 +178,7 @@ PasswordStoreWin::PasswordStoreWin(
const scoped_refptr<PasswordWebDataService>& web_data_service)
: PasswordStoreDefault(main_thread_runner,
db_thread_runner,
- login_db.Pass()) {
+ std::move(login_db)) {
db_handler_.reset(new DBHandler(web_data_service, this));
}
@@ -213,6 +214,6 @@ void PasswordStoreWin::GetLoginsImpl(const PasswordForm& form,
form, base::Bind(&GetLoginsRequest::NotifyConsumerWithResults,
base::Owned(request.release())));
} else {
- request->NotifyConsumerWithResults(matched_forms.Pass());
+ request->NotifyConsumerWithResults(std::move(matched_forms));
}
}
« no previous file with comments | « chrome/browser/password_manager/password_store_factory.cc ('k') | chrome/browser/policy/chrome_browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698