• Dominique Fauteux-Chapleau's avatar
    Refactor legacy DLP/Malware policies on download path · adf0b116
    Dominique Fauteux-Chapleau authored
    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: default avatarDaniel Rubery <drubery@chromium.org>
    Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
    Commit-Queue: Dominique Fauteux-Chapleau <domfc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#771555}
    adf0b116
analysis_service_settings.h 3.96 KB