• Nate Fischer's avatar
    AW: add Safe Browsing WebUI · 9e7a7fea
    Nate Fischer authored
    This adds the chrome://safe-browsing/ WebUI page to WebView. This allows
    WebView to hardcode URLs for testing Safe Browsing. This includes the
    resources for the basic chrome://safe-browsing page.
    
    As part of this, this adds WebUI to WebView for the first time.
    
    This contains 2 changes to get things running for our tests:
    
     - Changes a DCHECK_EQ in content layer. This assumption doesn't
       hold for single process, so it crashes tests running in single
       process mode.
     - Adds more SandboxedProcessServices for the test shell. No change is
       needed for the actual WebView apk, because it already has more than
       enough SandboxedProcessServices (20).
    
    The additional resources result in the following APK size increases for
    the system_webview_google_apk target:
    
     - en-US.pak: 6896 -> 6947 (+51 bytes)
     - resources.pak: 434005 -> 436285 (+2280 bytes)
    
    Bug: 709626
    Test: run_webview_instrumentation_test_apk -f SafeBrowsingTest#testSafeBrowsingHardcodedUrls
    Change-Id: Ie312521b323a5ba5ec37f8c44eaa1f0427587e34
    Reviewed-on: https://chromium-review.googlesource.com/576404Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
    Reviewed-by: default avatarBo Liu <boliu@chromium.org>
    Commit-Queue: Nate Fischer <ntfschr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#488449}
    9e7a7fea
grit_resources_whitelist.txt 241 Bytes