Add DLP warning upload UI for Deep Scanning
The UI now offers the possibility to bypass DLP warnings via buttons in the dialog. The button interactions are tested via a browser test. This involves a few refactors: - DeepScanUploadStatus becomes DeepScanningFinalResult in order to clearly represent what to show the user. - There is now a 4th DeepScanningDialogStatus to represent bypassable warnings. - The callback to allow/deny a paste/upload/drag is delayed in the warning case. - The "Cancel" override in DeepScanningDialogViews is replaced by using set_cancel_callback instead since the virtual method approach is deprecated. Bug: 1044290 Change-Id: I477db8ba06dec26dc12ebc17fdfce94d019787d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2072584 Commit-Queue: Dominique Fauteux-Chapleau <domfc@chromium.org> Reviewed-by:Roger Tawa <rogerta@chromium.org> Cr-Commit-Position: refs/heads/master@{#747354}
Showing
Please register or sign in to comment