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

Unified Diff: components/password_manager/core/browser/test_password_store.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: Fix Mac unittest 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/core/browser/test_password_store.cc
diff --git a/components/password_manager/core/browser/test_password_store.cc b/components/password_manager/core/browser/test_password_store.cc
index 678f7c7520e0faa1a5990e86165ffa3b2afe4c9e..c89da87667d1895de25f4189267c49e498e5f25d 100644
--- a/components/password_manager/core/browser/test_password_store.cc
+++ b/components/password_manager/core/browser/test_password_store.cc
@@ -46,12 +46,12 @@ bool TestPasswordStore::FormsAreEquivalent(const autofill::PasswordForm& lhs,
}
void TestPasswordStore::GetAutofillableLoginsImpl(
- PasswordStore::GetLoginsRequest* request) {
+ scoped_ptr<GetLoginsRequest> request) {
for (auto& forms_for_realm : stored_passwords_) {
for (const autofill::PasswordForm& form : forms_for_realm.second)
request->result()->push_back(new autofill::PasswordForm(form));
}
- ForwardLoginsResult(request);
+ ForwardLoginsResult(request.Pass());
}
PasswordStoreChangeList TestPasswordStore::AddLoginImpl(

Powered by Google App Engine
This is Rietveld 408576698