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

Unified Diff: components/autofill/content/common/autofill_types_struct_traits_unittest.cc

Issue 2760353003: [Password Manager] Don't send |UsernameCorrection| in |PasswordFormFillData| to the renderer (Closed)
Patch Set: Removed commented code. Added bug number to the UsernamesCollection declaration 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/autofill/content/common/autofill_types_struct_traits_unittest.cc
diff --git a/components/autofill/content/common/autofill_types_struct_traits_unittest.cc b/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
index 59f9bc4a9ce6f8a51b6e03e49f2c448738e6b48f..9699519c7488a14eb9d9dc68c59a163a88193ccc 100644
--- a/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
+++ b/components/autofill/content/common/autofill_types_struct_traits_unittest.cc
@@ -54,21 +54,6 @@ void CreateTestPasswordFormFillData(PasswordFormFillData* fill_data) {
pr.realm = "https://bar.com/";
fill_data->additional_logins[name] = pr;
- UsernamesCollectionKey key;
- key.username = base::ASCIIToUTF16("Tom");
- key.password = base::ASCIIToUTF16("Tom_Password");
- key.realm = "https://foo.com/";
- std::vector<base::string16>& possible_names =
- fill_data->other_possible_usernames[key];
- possible_names.push_back(base::ASCIIToUTF16("Tom_1"));
- possible_names.push_back(base::ASCIIToUTF16("Tom_2"));
- key.username = base::ASCIIToUTF16("Jerry");
- key.password = base::ASCIIToUTF16("Jerry_Password");
- key.realm = "https://bar.com/";
- possible_names = fill_data->other_possible_usernames[key];
- possible_names.push_back(base::ASCIIToUTF16("Jerry_1"));
- possible_names.push_back(base::ASCIIToUTF16("Jerry_2"));
-
fill_data->wait_for_username = true;
fill_data->is_possible_change_password_form = false;
}

Powered by Google App Engine
This is Rietveld 408576698