Fix CCT does not strikethrough scheme on broken https.
When CCT opens url like https://expired.badssl.com, the strikethrough scheme sometimes does not display. This is because in CustomTabToolbar, updateSecurityIcon does not demphasize the url before emphasize it and this causes OmniboxUrlEmphasizer.hasEmphasisSpans() sometimes returns true and prevents the emphasis. To fix the problem, remove the hasEmphasisSpans check and always deEmphasizeUrl before emphasizeUrl the url. BUG=754985 Change-Id: I16143c4237d71ce9d5b860597f523942d314ba25 Reviewed-on: https://chromium-review.googlesource.com/675769 Commit-Queue: Lei Tian <ltian@google.com> Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Cr-Commit-Position: refs/heads/master@{#504469}
Showing
Please register or sign in to comment