Merge "[WebView] Remove fallback call to WebViewFactoryProvider no-arg constructor."
This commit is contained in:
committed by
Android (Google) Code Review
commit
03c76e2b55
@@ -117,12 +117,8 @@ public final class WebViewFactory {
|
||||
StrictMode.ThreadPolicy oldPolicy = StrictMode.allowThreadDiskReads();
|
||||
Trace.traceBegin(Trace.TRACE_TAG_WEBVIEW, "providerClass.newInstance()");
|
||||
try {
|
||||
try {
|
||||
sProviderInstance = providerClass.getConstructor(WebViewDelegate.class)
|
||||
.newInstance(new WebViewDelegate());
|
||||
} catch (Exception e) {
|
||||
sProviderInstance = providerClass.newInstance();
|
||||
}
|
||||
sProviderInstance = providerClass.getConstructor(WebViewDelegate.class)
|
||||
.newInstance(new WebViewDelegate());
|
||||
if (DEBUG) Log.v(LOGTAG, "Loaded provider: " + sProviderInstance);
|
||||
return sProviderInstance;
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user