Override the MV2 deprecation: forces the use of the internal flag for forced activation of MV2 (#1404)

MV2 extensions are used internally for testing.
The assumption is that this way it can understand when MV2-related code is actually deleted.
This commit is contained in:
Carmelo Messina
2024-09-02 10:31:55 +02:00
parent 0a233c9137
commit 987deeefaf
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -293,6 +293,7 @@ Close-Sessions-On-Ip-Change.patch
Ask-for-restart-on-connection-change.patch
Bubble-Locking-on-UI-DevTools.patch
Add-a-GN-flag-to-disable-trybot-verification.patch
Override-the-MV2-deprecation.patch
# temporary or wip patches
Temp-PerformanceNavigationTiming-privacy-fix.patch
@@ -0,0 +1,24 @@
From: uazo <uazo@users.noreply.github.com>
Date: Mon, 2 Sep 2024 07:04:11 +0000
Subject: Override the MV2 deprecation
Uses the flag used in tests to forcibly enable MV2
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
---
chrome/browser/extensions/manifest_v2_experiment_manager.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/browser/extensions/manifest_v2_experiment_manager.cc b/chrome/browser/extensions/manifest_v2_experiment_manager.cc
--- a/chrome/browser/extensions/manifest_v2_experiment_manager.cc
+++ b/chrome/browser/extensions/manifest_v2_experiment_manager.cc
@@ -32,7 +32,7 @@ namespace extensions {
namespace {
// Whether to override the MV2 deprecation for testing purposes.
-bool g_allow_mv2_for_testing = false;
+bool g_allow_mv2_for_testing = true;
// Returns the suffix to use for histograms related to the manifest location
// grouping.
--