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

Unified Diff: components/password_manager/content/browser/content_password_manager_driver.cc

Issue 2736393003: Clear password values before sending them to the renderer process. (Closed)
Patch Set: Addressed comments Created 3 years, 9 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/content/browser/content_password_manager_driver.cc
diff --git a/components/password_manager/content/browser/content_password_manager_driver.cc b/components/password_manager/content/browser/content_password_manager_driver.cc
index 4058abb1f43ec22ef2cac7b8210b5b2cc36ea8b5..52ed13007579d1974d1a7354d5dd9e8e9705274c 100644
--- a/components/password_manager/content/browser/content_password_manager_driver.cc
+++ b/components/password_manager/content/browser/content_password_manager_driver.cc
@@ -85,7 +85,8 @@ void ContentPasswordManagerDriver::FillPasswordForm(
const autofill::PasswordFormFillData& form_data) {
const int key = next_free_key_++;
password_autofill_manager_.OnAddPasswordFormMapping(key, form_data);
- GetPasswordAutofillAgent()->FillPasswordForm(key, form_data);
+ GetPasswordAutofillAgent()->FillPasswordForm(
+ key, autofill::ClearPasswordValues(form_data));
}
void ContentPasswordManagerDriver::AllowPasswordGenerationForForm(

Powered by Google App Engine
This is Rietveld 408576698