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

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

Issue 2262843002: Make PasswordFormManager::best_matches_ const (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621355_pass_creds_to_update_by_value
Patch Set: Just rebased Created 4 years, 4 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/stub_form_saver.h
diff --git a/components/password_manager/core/browser/stub_form_saver.h b/components/password_manager/core/browser/stub_form_saver.h
index cbd72af10cb709d8914d741ab74cfa4a004ffba7..5efa6834424f0ff02cafbc3bf460baa355fea632 100644
--- a/components/password_manager/core/browser/stub_form_saver.h
+++ b/components/password_manager/core/browser/stub_form_saver.h
@@ -20,10 +20,12 @@ class StubFormSaver : public FormSaver {
// FormSaver:
void PermanentlyBlacklist(autofill::PasswordForm* observed) override {}
void Save(const autofill::PasswordForm& pending,
- const autofill::PasswordFormMap& best_matches,
+ const std::map<base::string16, const autofill::PasswordForm*>&
+ best_matches,
const autofill::PasswordForm* old_primary_key) override {}
void Update(const autofill::PasswordForm& pending,
- const autofill::PasswordFormMap& best_matches,
+ const std::map<base::string16, const autofill::PasswordForm*>&
+ best_matches,
const std::vector<autofill::PasswordForm>* credentials_to_update,
const autofill::PasswordForm* old_primary_key) override {}
void PresaveGeneratedPassword(
@@ -31,7 +33,7 @@ class StubFormSaver : public FormSaver {
void RemovePresavedPassword() override {}
void WipeOutdatedCopies(
const autofill::PasswordForm& pending,
- autofill::PasswordFormMap* best_matches,
+ std::map<base::string16, const autofill::PasswordForm*>* best_matches,
const autofill::PasswordForm** preferred_match) override {}
private:

Powered by Google App Engine
This is Rietveld 408576698