Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
Android.bp | H A D | 25-Apr-2025 | 8.1 KiB | 197 | 194 | |
BUILD.gn | H A D | 25-Apr-2025 | 284 | 15 | 13 | |
README | H A D | 25-Apr-2025 | 1.3 KiB | 32 | 23 | |
tld_cleanup.cc | H A D | 25-Apr-2025 | 3.9 KiB | 95 | 58 | |
tld_cleanup_util.cc | H A D | 25-Apr-2025 | 7.3 KiB | 220 | 158 | |
tld_cleanup_util.h | H A D | 25-Apr-2025 | 1.7 KiB | 56 | 30 | |
tld_cleanup_util_unittest.cc | H A D | 25-Apr-2025 | 6.5 KiB | 184 | 166 |
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 https://publicsuffix.org/list/public_suffix_list.dat 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// https://publicsuffix.org/list/public_suffix_list.dat 16 174. Diff the changes and restore any changes annotated with a "// CHROMIUM" 18 comment. 19 205. Build tld_cleanup (the "(net)" > "tld_cleanup" project) 21 226. Run it (no arguments needed), typically from src/build/Release or 23 src/build/Debug. It will re-generate 24 src/net/base/registry_controlled_domains/effective_tld_names.gperf. 25 267. Check in the updated effective_tld_names.dat, effective_tld_names.gperf 27 28Note that gperf is no longer used for effective_tld_names, but when building 29chromium the file effective_tld_names.gperf will be parsed by make_dafsa.py 30to generate the file effective_tld_names-inc.cc, which is included in 31registry_controlled_domain.cc 32