Report quality enforcement violation via console message
This CL adds a jni method to let QualityEnforcer notify native and send a console message for violations. We will move to use devtools issue tab instead in the near future. (TODO in quality_enforcer.cc) The warning together with the toast warning are behind a flag TRUSTED_WEB_ACTIVITY_QUALITY_ENFORCEMENT_WARNING, just in case we need to disabled them for any reason. The flag is *Enabled* for now since we have all approval on launch bug: crbug/1127892 To have a valid tab and WebContent to send the message to, moves the check of digital asset link violation to onDidFinishNavigation from onFinishNativeInitialization. This also moves the ViolationType enum to c++ part to be able to share between c++ and java. Bug: 1147479 Change-Id: If0f80fee412ea522a7202226a72b169092525cef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2530800 Commit-Queue: Ella Ge <eirage@chromium.org> Reviewed-by:Peter Conn <peconn@chromium.org> Reviewed-by:
Andrew Grieve <agrieve@chromium.org> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#826701}
Showing
Please register or sign in to comment