Chromium Code Reviews| Index: chrome/browser/password_manager/native_backend_gnome_x.cc |
| diff --git a/chrome/browser/password_manager/native_backend_gnome_x.cc b/chrome/browser/password_manager/native_backend_gnome_x.cc |
| index 75dde044a67a6ab0417d498c4412e2a350012ddb..5b3e38ea4e400dd5fd5462ab19683f9738639790 100644 |
| --- a/chrome/browser/password_manager/native_backend_gnome_x.cc |
| +++ b/chrome/browser/password_manager/native_backend_gnome_x.cc |
| @@ -699,14 +699,15 @@ bool NativeBackendGnome::RemoveLoginsSyncedBetween( |
| return RemoveLoginsBetween(delete_begin, delete_end, SYNC_TIMESTAMP, changes); |
| } |
| -bool NativeBackendGnome::DisableAutoSignInForAllLogins( |
| +bool NativeBackendGnome::DisableAutoSignInForOrigins( |
| + const base::Callback<bool(const GURL&)>& origin_filter, |
| password_manager::PasswordStoreChangeList* changes) { |
| ScopedVector<PasswordForm> forms; |
| if (!GetAllLogins(&forms)) |
| return false; |
| for (auto& form : forms) { |
| - if (!form->skip_zero_click) { |
| + if (origin_filter.Run(form->origin) && !form->skip_zero_click) { |
|
vabr (Chromium)
2016/07/08 19:22:03
Recalling your earlier planned to accept a "null"
msramek
2016/07/11 13:09:17
Correct - I would leave that for another pass when
|
| form->skip_zero_click = true; |
| if (!UpdateLogin(*form, changes)) |
| return false; |