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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_test.cc

Issue 1009953002: Integrate ManagePasswordsState into ManagePasswordsUIController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last comments Created 5 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: chrome/browser/ui/passwords/manage_passwords_test.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_test.cc b/chrome/browser/ui/passwords/manage_passwords_test.cc
index cd3f9f730a8d41a7e18f666478012f1ff0cbe4f3..5d2aa8d7b3d85971b8ea81723752a711873f0da3 100644
--- a/chrome/browser/ui/passwords/manage_passwords_test.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_test.cc
@@ -69,9 +69,10 @@ void ManagePasswordsTest::SetupAutomaticPassword() {
}
void ManagePasswordsTest::SetupBlackistedPassword() {
- base::string16 kTestUsername = base::ASCIIToUTF16("test_username");
+ test_form()->blacklisted_by_user = true;
+ test_form()->username_value.clear();
autofill::PasswordFormMap map;
- map[kTestUsername] = test_form();
+ map[test_form()->username_value] = test_form();
GetController()->OnBlacklistBlockedAutofill(map);
}

Powered by Google App Engine
This is Rietveld 408576698