Index: android_webview/native/aw_contents_io_thread_client_impl.cc |
diff --git a/android_webview/native/aw_contents_io_thread_client_impl.cc b/android_webview/native/aw_contents_io_thread_client_impl.cc |
index 38ee88f6f44915d2ae429df46c883a3fa72c4295..855cc860611ffd229a1953953049d595a9614cc5 100644 |
--- a/android_webview/native/aw_contents_io_thread_client_impl.cc |
+++ b/android_webview/native/aw_contents_io_thread_client_impl.cc |
@@ -394,6 +394,16 @@ bool AwContentsIoThreadClientImpl::ShouldAcceptThirdPartyCookies() const { |
env, java_object_); |
} |
+bool AwContentsIoThreadClientImpl::GetSafeBrowsingEnabled() const { |
+ DCHECK_CURRENTLY_ON(BrowserThread::IO); |
+ if (java_object_.is_null()) |
+ return false; |
+ |
+ JNIEnv* env = AttachCurrentThread(); |
+ return Java_AwContentsIoThreadClient_getSafeBrowsingEnabled(env, |
+ java_object_); |
+} |
+ |
bool AwContentsIoThreadClientImpl::ShouldBlockNetworkLoads() const { |
DCHECK_CURRENTLY_ON(BrowserThread::IO); |
if (java_object_.is_null()) |