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

Unified Diff: chrome/renderer/autofill/password_generation_test_utils.cc

Issue 2320563002: [Password Generation] Use canonical version of action in for form matching in PasswordGenerationAgen (Closed)
Patch Set: Changes addressed to reviewer comments Created 4 years, 3 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: chrome/renderer/autofill/password_generation_test_utils.cc
diff --git a/chrome/renderer/autofill/password_generation_test_utils.cc b/chrome/renderer/autofill/password_generation_test_utils.cc
index d734037a4a762524537598981d3b9b981fdcf518..4dcc5280e7b4ee5ac6aa41b8cafd3f2bad568ab3 100644
--- a/chrome/renderer/autofill/password_generation_test_utils.cc
+++ b/chrome/renderer/autofill/password_generation_test_utils.cc
@@ -19,8 +19,8 @@ namespace autofill {
void SetNotBlacklistedMessage(TestPasswordGenerationAgent* generation_agent,
const char* form_str) {
autofill::PasswordForm form;
- form.origin =
- GURL(base::StringPrintf("data:text/html;charset=utf-8,%s", form_str));
+ form.origin = form_util::StripAuthAndParams(
+ GURL(base::StringPrintf("data:text/html;charset=utf-8,%s", form_str)));
generation_agent->FormNotBlacklisted(form);
}

Powered by Google App Engine
This is Rietveld 408576698