From: Daniel Micay <danielmicay@gmail.com>
Date: Thu, 10 Dec 2020 10:09:18 -0500
Subject: disable WebView variations support

Original License: MIT - https://spdx.org/licenses/MIT.html
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
 .../com/android/webview/chromium/WebViewChromiumAwInit.java   | 4 ----
 .../webview/chromium/WebViewChromiumFactoryProvider.java      | 2 --
 2 files changed, 6 deletions(-)

diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumAwInit.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumAwInit.java
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumAwInit.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumAwInit.java
@@ -199,10 +199,6 @@ public class WebViewChromiumAwInit {
 
             AwBrowserProcess.configureChildProcessLauncher();
 
-            // finishVariationsInitLocked() must precede native initialization so the seed is
-            // available when AwFeatureListCreator::SetUpFieldTrials() runs.
-            finishVariationsInitLocked();
-
             AwBrowserProcess.start();
             AwBrowserProcess.handleMinidumpsAndSetMetricsConsent(true /* updateMetricsConsent */);
 
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -500,8 +500,6 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
                 }
             }
 
-            mAwInit.startVariationsInit();
-
             mShouldDisableThreadChecking = shouldDisableThreadChecking(ctx);
 
             setSingleton(this);
--
2.25.1
