Use FileTypePolicies as authoritative source for is_archive and is_supported download classifications.
* Replace all usage of download_protection_util.cc functions except for
GetDownloadType().
* Enable it for Android since it will be used for chrome-controlled
downloads in the future.
* Make FileTypePolicies thread safe via locking. It's created
and updated from several threads (between the ZipAnalyzer sandbox,
SafeBrowsingService, and unit/browser tests). It'll only be accessed
during downloads and incident reports, and will be updated less than
once per few hours.
Coming in following CL:
* Replace all usage of download_extensions.h and FileDangerLevel
BUG=596555
Review-Url: https://codereview.chromium.org/1979153002
Cr-Commit-Position: refs/heads/master@{#394879}
19 files changed