LeOSium_webview/mulch/patches/0002-LineageOS/0003-webview-Hard-no-to-per...

37 lines
1.3 KiB
Diff
Raw Normal View History

2023-11-18 11:46:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Kevin F. Haggerty" <haggertk@lineageos.org>
Date: Sun, 27 Dec 2020 09:42:54 -0700
Subject: [PATCH] webview: Hard no to persistent histograms
* It's probably some kind of bug somewhere that these are never
deleted, but they don't really add value to us in the first
place.
* Stop eating 4MB every single time any app that uses webview
ever opens.
* These were guarded by a feature check before
https://chromium.googlesource.com/chromium/src/+/b86102f2a243
---
android_webview/browser/aw_field_trials.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/android_webview/browser/aw_field_trials.cc b/android_webview/browser/aw_field_trials.cc
index ede1e7a3f2bc2..5a83018d17c18 100644
--- a/android_webview/browser/aw_field_trials.cc
+++ b/android_webview/browser/aw_field_trials.cc
@@ -50,6 +50,7 @@ class AwFeatureOverrides {
} // namespace
void AwFieldTrials::OnVariationsSetupComplete() {
+#if 0
// Persistent histograms must be enabled ASAP, but depends on Features.
base::FilePath metrics_dir;
if (base::PathService::Get(base::DIR_ANDROID_APP_DATA, &metrics_dir)) {
@@ -57,6 +58,7 @@ void AwFieldTrials::OnVariationsSetupComplete() {
} else {
NOTREACHED();
}
+#endif
}
// TODO(crbug.com/1453407): Consider to migrate all WebView feature overrides