• Home
Name Date Size #Lines LOC

..--

OWNERSD03-May-202417 21

READMED03-May-20241.4 KiB3224

tld_cleanup.ccD03-May-20243.8 KiB9558

tld_cleanup.gypD03-May-2024524 2422

tld_cleanup_util.ccD03-May-20248.9 KiB256191

tld_cleanup_util.hD03-May-20241.4 KiB4927

tld_cleanup_util_unittest.ccD03-May-20246.7 KiB169154

README

1When updating src/net/base/registry_controlled_domains/effective_tld_names.dat:
2
31. Obtain the new effective_tld_names.dat, probably by downloading
4   http://goo.gl/Ji2bB
5
62. Remove whitespace from the ends of the lines.
7   You could possibly use something like:
8     sed -i -e "s/\s*$//g" \
9         src/net/base/registry_controlled_domains/effective_tld_names.dat
10
113. Add the Chromium note back in just after the license at the top, and just
12   before '===BEGIN ICANN DOMAINS==='. Ensure there is an empty line above and
13   two empty lines below the note. The note should say:
14// Chromium note: this is based on Mozilla's file:
15//  http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1
16
174. Build tld_cleanup (the "(net)" > "tld_cleanup" project)
18
195. Run it (no arguments needed), typically from src/build/Release or
20   src/build/Debug. It will re-generate
21   src/net/base/registry_controlled_domains/effective_tld_names.gperf.
22
236. Run gperf on the new effective_tld_names.gperf:
24     pushd src/net/base/registry_controlled_domains;
25     gperf -a -L "C++" -C -c -o -t -k '*' -NFindDomain -P -K name_offset -D -m 10 \
26         effective_tld_names.gperf > effective_tld_names.cc;
27     popd;
28   It will produce a new effective_tld_names.cc.
29
307. Check in the updated effective_tld_names.dat, effective_tld_names.gperf,
31   and effective_tld_names.cc together.
32