commit | cf177bac5e2eb43f3520532c4588e9594dbe9159 | [log] [tgz] |
---|---|---|
author | Vaclav Brozek <vabr@chromium.org> | Tue Dec 05 11:39:00 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Dec 05 11:39:00 2017 |
tree | 82e1ddbb1f6bc20eb23f0ff1e70501d82e547b2e | |
parent | e46da065ca56ac01b89399ed3855d909b0f22e78 [diff] |
Fix invalid cast in SavePasswordsPreferences#resetList The resetList method tries to call PreferenceGroup#removeAll on TextMessagePreference (which is not a PreferenceGroup) if an update of the settings happens while the last state had no saved passwords to display. This is a rare situation because people who have no saved passwords are not very often inspecting their passwords settings, but can happen in reality as well (e.g., when somebody inspects the page during early moments of syncing and Chrome sync populates the page as the user views it). This CL introduces a special method to do the job of resetList in the case there are no lists, and adds a test which executed the invalid cast before the fix. Bug: 788701 Change-Id: I64ada510deb78cc7b8f22f085ef2f401e9bb76ba Reviewed-on: https://chromium-review.googlesource.com/806165 Commit-Queue: Vaclav Brozek <vabr@chromium.org> Reviewed-by: Finnur Thorarinsson <finnur@chromium.org> Cr-Commit-Position: refs/heads/master@{#521667}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .