Shortcut viewer: Minor fixes to |shortcut_message_id| logic
This fixes two issues: - If |has_invalid_dom_key| is set and |item.shortcut_message_id| was missing, the old logic would incorrectly DCHECK instead of displaying the "no mapping" string. - Dynamically changing the length of replacement strings does not change the shortcut message used. This isn't a problem with the current implementation, as the length of replacement strings is static, but may be a problem if replacement strings are dynamically chosen in the future. Change-Id: Idfa355b68e29508125e2278dac83a60f7a215807 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2513307 Commit-Queue: Michael Cui <mlcui@google.com> Reviewed-by:Tao Wu <wutao@chromium.org> Cr-Commit-Position: refs/heads/master@{#823833}
Showing
Please register or sign in to comment