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

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

Issue 1308773002: ManagePasswordsState should ignore the blacklisted forms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | chrome/browser/ui/passwords/manage_passwords_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/manage_passwords_state.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_state.cc b/chrome/browser/ui/passwords/manage_passwords_state.cc
index a7e893ae68f8c36fca8f7da8121f5e79f032e51b..dda3d3ade7fd5b68dfb15202c60716813a3fc9a3 100644
--- a/chrome/browser/ui/passwords/manage_passwords_state.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_state.cc
@@ -188,6 +188,8 @@ void ManagePasswordsState::ProcessLoginsChanged(
for (const password_manager::PasswordStoreChange& change : changes) {
const autofill::PasswordForm& changed_form = change.form();
+ if (changed_form.blacklisted_by_user)
+ continue;
if (change.type() == password_manager::PasswordStoreChange::REMOVE) {
DeleteForm(changed_form);
} else {
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/manage_passwords_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698