• Nate Fischer's avatar
    AW: block billing threats · 3bf60675
    Nate Fischer authored
    No change to default behavior, because this logic is behind a flag.
    
    This blocks billing threats in WebView, and adds some tests for this
    functionality. This involves:
    
     * Add necessary resources to WebView's whitelist
     * Test Loud and Quiet interstitials
     * Test we use the correct threat type integer in onSafeBrowsingHit
     * Test that the Feature is disabled on trunk
     * Add hardcoded WebUI URL for billing interstitial (also for Chrome)
    
    R=changwan@chromium.org, vakh@chromium.org
    
          Feature enabled via commandline flag.
        This is necessary to stay consistent with Chrome.
    
    Bug: 887186
    Test: run_webview_instrumentation_test_apk --gtest_filter=SafeBrowsingTest#*Billing*
    Test: Manual - load chrome://safe-browsing/match?type=billing with
    Binary-Size: Increase is due to added WebView strings for the new interstitials.
    Change-Id: I695c39ffdd79ef5e771027953bfffc327fc6864b
    Reviewed-on: https://chromium-review.googlesource.com/c/1270476Reviewed-by: default avatarCarlos IL <carlosil@chromium.org>
    Reviewed-by: default avatarChangwan Ryu <changwan@chromium.org>
    Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
    Commit-Queue: Nate Fischer <ntfschr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#600145}
    3bf60675
constants.cc 902 Bytes