diff options
| author | Nate Fischer <ntfschr@google.com> | 2017-06-27 22:52:20 -0700 |
|---|---|---|
| committer | Nate Fischer <ntfschr@google.com> | 2017-06-27 23:25:15 -0700 |
| commit | bf158ec3d8d05de9c6e469f5b0163698a5e83c96 (patch) | |
| tree | 0576ad6e85b4070f582c9ea179498491c3697094 /core/java/android/webkit/WebView.java | |
| parent | ff196ec7bbfbe269c9530f14ff39b2bedf6a4b7c (diff) | |
WebView: add APIs for setSafeBrowsingWhiteList
This adds the APIs for the static method
WebView#setSafeBrowsingWhiteList().
BUG: 63084528
Test: N/A
Change-Id: I6eff32d9f8356e8c1a2c631782e07d52ba9b6ad5
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index ec2b302d35ca..5fed925dd956 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1638,6 +1638,17 @@ public class WebView extends AbsoluteLayout } /** + * Sets the list of domains that are exempt from SafeBrowsing checks. The list is + * global for all the WebViews. + * TODO: Add documentation for the format of the urls. + * + * @param urls the list of URLs + */ + public static void setSafeBrowsingWhiteList(@Nullable String[] urls) { + getFactory().getStatics().setSafeBrowsingWhiteList(urls); + } + + /** * Gets the WebBackForwardList for this WebView. This contains the * back/forward list for use in querying each item in the history stack. * This is a copy of the private WebBackForwardList so it contains only a |
