As part of WebViewClient#onSafeBrowsingHit, we offer applications a way to choose whether or not to report Safe Browsing hits using the Safe Browsing reporting mechanism Tim has been working on.
Specifically, the API looks like:
public abstract void proceed(boolean report);
public abstract void backToSafety(boolean report);
`backToSafety(true)` should send a report just as if the user checked the checkbox and clicked "back to safety" themselves. Currently the reporting part of these actions is left unimplemented [1].
Tim and Jialiu, what's the best way to invoke the reporting sequence from here? In these situations, we'll have a ResourceThrottle and UIManager, but we'll skip the BlockingPage entirely.
Tentatively assigning to Tim, but I'm not opposed to implementing if someone can walk me through the correct entry point for creating & sending a report.
[1] https://cs.chromium.org/chromium/src/android_webview/browser/aw_safe_browsing_resource_throttle.cc?type=cs&q=f:android_webview+f:safe_browsing+crbug&sq=package:chromium&l=108
Comment 1 by ntfschr@chromium.org
, Jul 26 2017