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

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

Issue 2078253002: vector<unique_ptr> for PasswordFormManager::blacklisted_matches_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UI controller Created 4 years, 6 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_form_manager.h
diff --git a/components/password_manager/core/browser/password_form_manager.h b/components/password_manager/core/browser/password_form_manager.h
index cfe2176d61eb77dc2222c5362121038902b76079..5e25d390fc5a179895133b35e491340f58b769e5 100644
--- a/components/password_manager/core/browser/password_form_manager.h
+++ b/components/password_manager/core/browser/password_form_manager.h
@@ -219,7 +219,8 @@ class PasswordFormManager : public PasswordStoreConsumer {
return preferred_match_;
}
- const ScopedVector<autofill::PasswordForm>& blacklisted_matches() const {
+ const std::vector<std::unique_ptr<autofill::PasswordForm>>&
+ blacklisted_matches() const {
return blacklisted_matches_;
}
@@ -481,7 +482,7 @@ class PasswordFormManager : public PasswordStoreConsumer {
// Set of blacklisted forms from the PasswordStore that best match the current
// form.
- ScopedVector<autofill::PasswordForm> blacklisted_matches_;
+ std::vector<std::unique_ptr<autofill::PasswordForm>> blacklisted_matches_;
// The PasswordForm from the page or dialog managed by |this|.
const autofill::PasswordForm observed_form_;

Powered by Google App Engine
This is Rietveld 408576698