Commit 563f1dc7 authored by Joe DeBlasio's avatar Joe DeBlasio Committed by Commit Bot

Update minimum length for edit distance matching.

This CL updates the minimum length of a domain that is considered for an
edit distance match. Edit distance is used in some cases to trigger a
Safety Tip warning.

Bug: 1023820
Change-Id: Ie4a18369874dbb947a5e1b41f2bf8b189b60403b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1913468
Commit-Queue: Joe DeBlasio <jdeblasio@chromium.org>
Commit-Queue: Mustafa Emre Acer <meacer@chromium.org>
Reviewed-by: default avatarMustafa Emre Acer <meacer@chromium.org>
Auto-Submit: Joe DeBlasio <jdeblasio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714750}
parent 65f31703
......@@ -11,9 +11,11 @@ namespace top_domains {
namespace {
// Minimum length for a hostname to be considered for an edit distance
// comparison. Shorter domains are ignored.
const size_t kMinLengthForEditDistance = 5u;
// Minimum length of the e2LD (the registered domain name without the registry)
// to be considered for an edit distance comparison, including a trailing dot.
// Thus: 'google.com' has of length 7 ("google.") and is long enough, while
// 'abc.co.uk' has a length of 4 ("abc."), and will not be considered.
const size_t kMinLengthForEditDistance = 6u;
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment