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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 1923283002: Password internals page logs names of filled elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/autofill/content/renderer/renderer_save_password_progress_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index 18b78142854c8661ac5ef72716d28619c6dd5b6e..ce485ac91a149483af76227c72d83e372025aace 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -503,7 +503,7 @@ bool FillUserNameAndPassword(
(*nonscript_modified_values)[*username_element] = username;
username_element->setAutofilled(true);
if (logger)
- logger->LogMessage(Logger::STRING_USERNAME_FILLED);
+ logger->LogElementName(Logger::STRING_USERNAME_FILLED, *username_element);
if (set_selection) {
form_util::PreviewSuggestion(username, current_username,
username_element);
@@ -523,7 +523,7 @@ bool FillUserNameAndPassword(
password_element->setAutofilled(true);
if (logger)
- logger->LogMessage(Logger::STRING_PASSWORD_FILLED);
+ logger->LogElementName(Logger::STRING_PASSWORD_FILLED, *password_element);
return true;
}
« no previous file with comments | « no previous file | components/autofill/content/renderer/renderer_save_password_progress_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698