AW: add privacyPolicyUrl to onSafeBrowsingHit

Desktop / Chromium - Nate Fischer [chromium.org] - 8 August 2017 14:58 EDT

This adds the privacyPolicyUrl parameter to onSafeBrowsingHit calls and passes the correct value from native.

Downstream code will eventually pass this URL as part of the application callback.

Bug: 753138 Test: run_webview_instrumentation_test_apk -f SafeBrowsingTest#testSafeBrowsingOnSafeBrowsingHit* Change-Id: Ia5fa92a70f28a120863b405d9e675d4b211dd886 Reviewed-on: https://chromium-review.googlesource.com/604749

c28a516 AW: add privacyPolicyUrl to onSafeBrowsingHit
.../browser/aw_contents_client_bridge.cc | 3 +-
.../browser/aw_contents_client_bridge.h | 1 +
.../browser/aw_safe_browsing_resource_throttle.cc | 5 +-
.../chromium/WebViewContentsClientAdapter.java | 2 +-
.../chromium/android_webview/AwContentsClient.java | 2 +-
.../android_webview/AwContentsClientBridge.java | 7 +--
.../AwContentsClientCallbackHelper.java | 13 ++++--
.../android_webview/test/SafeBrowsingTest.java | 53 ++++++++++++----------
.../android_webview/test/NullContentsClient.java | 2 +-
9 files changed, 50 insertions(+), 38 deletions(-)

Upstream: git.chromium.org


  • Share