Files
cromite/build/patches/webview-Hard-no-to-persistent-histograms.patch
Carl 68e2652402 Patches for v97 (#1795)
Patches for v97

Add uazo's patch to build with use_sysroot=false
Start using new SystemWebView package name
Cleanup metrics patches and add a few more patches from Vanadium
Enable use_cfi_cast
2022-02-17 19:16:35 +01:00

31 lines
1.1 KiB
Diff

From: "Kevin F. Haggerty" <haggertk@lineageos.org>
Date: Sun, 27 Dec 2020 09:42:54 -0700
Subject: 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 | 5 -----
1 file changed, 5 deletions(-)
diff --git a/android_webview/browser/aw_field_trials.cc b/android_webview/browser/aw_field_trials.cc
--- a/android_webview/browser/aw_field_trials.cc
+++ b/android_webview/browser/aw_field_trials.cc
@@ -11,9 +11,4 @@
#include "components/metrics/persistent_histograms.h"
void AwFieldTrials::SetUpFieldTrials() {
- // Persistent histograms must be enabled as soon as possible.
- base::FilePath metrics_dir;
- if (base::PathService::Get(base::DIR_ANDROID_APP_DATA, &metrics_dir)) {
- InstantiatePersistentHistograms(metrics_dir);
- }
}
--
2.25.1