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

Unified Diff: components/password_manager/core/browser/password_store_sync.h

Issue 825773003: PasswordStore: Use ScopedVector to express ownership of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Leaks fixed + VABR->vabr Created 5 years, 11 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/password_store_sync.h
diff --git a/components/password_manager/core/browser/password_store_sync.h b/components/password_manager/core/browser/password_store_sync.h
index d984bad4a3a20dcd3aef404c85705e2467b0f4cb..bed837a3752ce3a11754bbf252e508450ab4817b 100644
--- a/components/password_manager/core/browser/password_store_sync.h
+++ b/components/password_manager/core/browser/password_store_sync.h
@@ -5,8 +5,7 @@
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_SYNC_INTERFACE_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_SYNC_INTERFACE_H_
-#include <vector>
-
+#include "base/memory/scoped_vector.h"
#include "components/password_manager/core/browser/password_store_change.h"
namespace password_manager {
@@ -19,11 +18,11 @@ class PasswordStoreSync {
public:
// Finds all non-blacklist PasswordForms, and fills the vector.
virtual bool FillAutofillableLogins(
- std::vector<autofill::PasswordForm*>* forms) = 0;
+ ScopedVector<autofill::PasswordForm>* forms) = 0;
// Finds all blacklist PasswordForms, and fills the vector.
virtual bool FillBlacklistLogins(
- std::vector<autofill::PasswordForm*>* forms) = 0;
+ ScopedVector<autofill::PasswordForm>* forms) = 0;
// Synchronous implementation to add the given login.
virtual PasswordStoreChangeList AddLoginImpl(

Powered by Google App Engine
This is Rietveld 408576698