commit | 347ed67afd15c74cbe707710ec0804ca167cdad1 | [log] [tgz] |
---|---|---|
author | Nodir Turakulov <nodir@chromium.org> | Tue May 18 09:06:24 2021 |
committer | Copybara-Service <copybara-worker@google.com> | Tue May 18 09:17:31 2021 |
tree | ef8c3b2fccbe77417171a2ea4a62356a6b66295a | |
parent | 564d7b9f411b6b7f490e1422b8d571ca46cd8e0f [diff] |
[dirmd] Deduplicate directory metadata Programmatically delete redundant metadata. This CL is entirely machine-generated: 1. Export the metadata in the "original" and "reduced" forms: dirmd read -form original > ~/tmp/dirmd/original.json dirmd read -form reduced > ~/tmp/dirmd/reduced.json 2. Run reduce.py Source code: https://gist.github.com/nodirg/a4803af94ffe258ba0a6e0a4807141d8 The script diffs the two JSON files and strips redundant lines from DIR_METADATA files. If the file became empty, then removes the file. The results of the script was verified by diffing canonical representation of `dirmd read -form full` before and after the script: there is no diff. Bug: 1179786 Change-Id: Ie5de3ba0962d266244ffb9b07c874b3dbbb69b9c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2795985 Reviewed-by: John Abd-El-Malek <jam@chromium.org> Reviewed-by: Fred Mello <fredmello@chromium.org> Owners-Override: John Abd-El-Malek <jam@chromium.org> Commit-Queue: Nodir Turakulov <nodir@chromium.org> Cr-Commit-Position: refs/heads/master@{#883868} NOKEYCHECK=True GitOrigin-RevId: 6dfb6d1accb0d5b62ac31eac2ae080f10d64ab57
This directory contains shared constants and interfaces used for communication between the Chrome Cleanup Tool and Chrome's Safe Browsing service.