From a811c2f65c0916516311999a5642d268ed8f3583 Mon Sep 17 00:00:00 2001 From: Jonathan Dixon Date: Thu, 10 Jan 2013 19:14:32 -0800 Subject: [PATCH] Remove checkThread() in WebView.getFactory() Bug: 7617139 WebViewFactoryProvider.getProvider() is thread safe, and when called from findAddress() this is giving a spurious strict mode warning. Also removing obsolete comment while here. Change-Id: I0b36bc23c13c9c9bec26edaf32ee83ade88982c8 --- core/java/android/webkit/WebView.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 441b7b0000cde..1abea2b38b78b 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -1865,9 +1865,6 @@ public class WebView extends AbsoluteLayout } private static synchronized WebViewFactoryProvider getFactory() { - // For now the main purpose of this function (and the factory abstration) is to keep - // us honest and minimize usage of WebViewClassic internals when binding the proxy. - checkThread(); return WebViewFactory.getProvider(); }