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

Unified Diff: components/password_manager/content/browser/credential_manager_password_form_manager.cc

Issue 866983003: GetLoginsRequest: Use ScopedVector to express ownership of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@324291_scopedvector
Patch Set: Second fix of the rebase Created 5 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: components/password_manager/content/browser/credential_manager_password_form_manager.cc
diff --git a/components/password_manager/content/browser/credential_manager_password_form_manager.cc b/components/password_manager/content/browser/credential_manager_password_form_manager.cc
index 0bea2826d527bb19c19863593eafcca21f6fe5c9..66539bb20b67e466017e2a1f9caf1f9e32442709 100644
--- a/components/password_manager/content/browser/credential_manager_password_form_manager.cc
+++ b/components/password_manager/content/browser/credential_manager_password_form_manager.cc
@@ -31,8 +31,8 @@ CredentialManagerPasswordFormManager::~CredentialManagerPasswordFormManager() {
}
void CredentialManagerPasswordFormManager::OnGetPasswordStoreResults(
- const std::vector<PasswordForm*>& results) {
- PasswordFormManager::OnGetPasswordStoreResults(results);
+ ScopedVector<autofill::PasswordForm> results) {
+ PasswordFormManager::OnGetPasswordStoreResults(results.Pass());
// Mark the form as "preferred", as we've been told by the API that this is
// indeed the credential set that the user used to sign into the site.

Powered by Google App Engine
This is Rietveld 408576698