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

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

Issue 2098573002: Implement PasswordFormManager::WipeStoreCopyIfOutdated in FormSaver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621355_FormSaver
Patch Set: Just rebased 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
« no previous file with comments | « no previous file | components/password_manager/core/browser/form_saver_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/form_saver.h
diff --git a/components/password_manager/core/browser/form_saver.h b/components/password_manager/core/browser/form_saver.h
index 9b452d415a6336aed36000887ebabfd298c6ed45..825dddc5685ff33ce9d6c788f68fd170d14fccb2 100644
--- a/components/password_manager/core/browser/form_saver.h
+++ b/components/password_manager/core/browser/form_saver.h
@@ -54,6 +54,17 @@ class FormSaver {
// password.
virtual void RemovePresavedPassword() = 0;
+ // Removes all credentials from |best_matches| which are for the same GAIA
+ // account as |pending|, but with a different (i.e., outdated) password. The
+ // credentials are removed both from the store and from |best_matches|. If
+ // one of the removed credentials is the pointee of |*preferred_match|,
+ // |*preferred_match| is nulled. Do not call this if |pending| is not a GAIA
+ // account.
+ virtual void WipeOutdatedCopies(
+ const autofill::PasswordForm& pending,
+ autofill::PasswordFormMap* best_matches,
+ const autofill::PasswordForm** preferred_match) = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(FormSaver);
};
« no previous file with comments | « no previous file | components/password_manager/core/browser/form_saver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698