Avoid Crash for State Dropdown on Address Editor
Problem: if the state is not saved as the key (like NY), and is saved as a complete form (New York), or is invalid (Caoldo), the assert would fail on debug mode. On release build, the state would not show up on the editor. Solution: Look for both the key and the complete form. If can't find them (invalid value), show the default or the first item. Tests added. Bug: 861821 Change-Id: I8eeb3679c0dd503c264014e22d8e2a6cd8ef5405 Reviewed-on: https://chromium-review.googlesource.com/1140366 Commit-Queue: Parastoo Geranmayeh <parastoog@google.com> Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#576226}
Showing
Please register or sign in to comment