forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lookalike Urls: Fix edit distance when navigated domain is a top domain
The edit distance heuristic incorrectly triggers for top domains that are one edit distance away from another top 500 domain. As a result, we show a "Did you mean to go to" infobar for a top domain. This CL fixes that and refactors the code so that most of the information such as IDN conversion result and skeletons is only computed once. Bug: 913647 Change-Id: I0efbadf3b9417ff7a122fb686397e74c0e35cf6b Reviewed-on: https://chromium-review.googlesource.com/c/1407253 Reviewed-by: Tommy Li <[email protected]> Commit-Queue: Mustafa Emre Acer <[email protected]> Cr-Commit-Position: refs/heads/master@{#622928}
- Loading branch information
Showing
3 changed files
with
100 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters