Refactor legacy DLP/Malware policies on download path
This CL makes the FILE_DOWNLOADED Connector replace CheckContentCompliance and SendFilesForMalwareCheck on downloads. This is achieved by replacing CheckClientDownloadRequest::ShouldUploadBinary by CheckClientDownloadRequest::GetAnalysisSettings and passing the returned settings as a parameter to DeepScanningRequest when they are found. This CL does not introduce new tests since this refactor should not affect the behaviour of the previous legacy policies. Once this is submitted, further CLs will reuse download tests with the FILE_DOWNLOADED connector (crbug/1076083). Bug: 1067631 Change-Id: Id66c37b64280f1e482043b8223a72dfd41017147 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2191205Reviewed-by:Daniel Rubery <drubery@chromium.org> Reviewed-by:
Min Qin <qinmin@chromium.org> Commit-Queue: Dominique Fauteux-Chapleau <domfc@chromium.org> Cr-Commit-Position: refs/heads/master@{#771555}
Showing
This diff is collapsed.
Please register or sign in to comment