LeOSium_old/patches/0001-Vanadium/0018-disable-WebView-variat...

43 lines
2.1 KiB
Diff
Raw Permalink Normal View History

2023-11-18 11:23:04 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Thu, 10 Dec 2020 10:09:18 -0500
Subject: [PATCH] disable WebView variations support
---
.../com/android/webview/chromium/WebViewChromiumAwInit.java | 6 ------
.../webview/chromium/WebViewChromiumFactoryProvider.java | 4 ----
2 files changed, 10 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
index d165d41f8b9e8..154be209c83fd 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumAwInit.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumAwInit.java
@@ -202,12 +202,6 @@ public class WebViewChromiumAwInit {
AwBrowserProcess.configureChildProcessLauncher();
- // finishVariationsInitLocked() must precede native initialization so the seed is
- // available when AwFeatureListCreator::SetUpFieldTrials() runs.
- if (!FastVariationsSeedSafeModeAction.hasRun()) {
- 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
index c1c83348cc734..eea695706f323 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -478,10 +478,6 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
}
}
- if (!FastVariationsSeedSafeModeAction.hasRun()) {
- mAwInit.startVariationsInit();
- }
-
mShouldDisableThreadChecking = shouldDisableThreadChecking(ctx);
setSingleton(this);