Drop Temp-fix-Content-settings-infrastructure.patch
This commit is contained in:
@@ -289,7 +289,6 @@ TEMP-Add-a-log-to-track-strange-behavior.patch
|
||||
Temp-guard-FileSystemAccessPersistentPermissions.patch
|
||||
Fix-chromium-build-bugs.patch
|
||||
00Temp-disable-network-service-windows.patch
|
||||
00Temp-fix-Content-settings-infrastructure.patch
|
||||
|
||||
eyeo-beta-118.0.5993.48-base.patch
|
||||
eyeo-beta-118.0.5993.48-chrome_integration.patch
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
From: Your Name <you@example.com>
|
||||
Date: Wed, 21 Feb 2024 09:16:51 +0000
|
||||
Subject: Temp fix Content settings infrastructure
|
||||
|
||||
---
|
||||
.../content_settings/core/common/content_settings_types.mojom | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/components/content_settings/core/common/content_settings_types.mojom b/components/content_settings/core/common/content_settings_types.mojom
|
||||
--- a/components/content_settings/core/common/content_settings_types.mojom
|
||||
+++ b/components/content_settings/core/common/content_settings_types.mojom
|
||||
@@ -388,6 +388,10 @@ enum ContentSettingsType {
|
||||
WEB_PRINTING,
|
||||
|
||||
NUM_TYPES_CHROMIUM,
|
||||
+ TIMEZONE_OVERRIDE,
|
||||
+ VIEWPORT,
|
||||
+ WEBGL,
|
||||
+ WEBRTC,
|
||||
// #include "components/content_settings/core/common/bromite_content_settings.inc"
|
||||
NUM_TYPES_BROMITE,
|
||||
};
|
||||
--
|
||||
@@ -3129,7 +3129,7 @@ diff --git a/components/content_settings/core/common/content_settings_types.mojo
|
||||
|
||||
- NUM_TYPES,
|
||||
+ NUM_TYPES_CHROMIUM,
|
||||
+// #include "components/content_settings/core/common/bromite_content_settings.inc"
|
||||
+#include "components/content_settings/core/common/bromite_content_settings.inc"
|
||||
+ NUM_TYPES_BROMITE,
|
||||
};
|
||||
|
||||
|
||||
@@ -17,9 +17,10 @@ Subject: bromite build utils
|
||||
.../flags/android/cromite_native_utils.cc | 43 +++++++
|
||||
.../flags/android/cromite_native_utils.h | 14 +++
|
||||
.../browser/flags/CromiteNativeUtils.java | 46 ++++++++
|
||||
mojo/public/tools/mojom/mojom_parser.py | 22 +++-
|
||||
tools/grit/grit/grd_reader.py | 27 ++++-
|
||||
tools/grit/preprocess_if_expr.py | 32 +++++-
|
||||
16 files changed, 469 insertions(+), 16 deletions(-)
|
||||
17 files changed, 488 insertions(+), 19 deletions(-)
|
||||
create mode 100644 build/bromite/bromite_utils.gni
|
||||
create mode 100644 build/bromite/gyp/cpp_bromite_include.py
|
||||
create mode 100644 build/bromite/gyp/cpp_bromite_include.pydeps
|
||||
@@ -624,6 +625,55 @@ new file mode 100755
|
||||
+ boolean isFlagEnabled(String featureName);
|
||||
+ }
|
||||
+}
|
||||
diff --git a/mojo/public/tools/mojom/mojom_parser.py b/mojo/public/tools/mojom/mojom_parser.py
|
||||
--- a/mojo/public/tools/mojom/mojom_parser.py
|
||||
+++ b/mojo/public/tools/mojom/mojom_parser.py
|
||||
@@ -21,6 +21,7 @@ import os
|
||||
import os.path
|
||||
import sys
|
||||
import traceback
|
||||
+import re
|
||||
from collections import defaultdict
|
||||
|
||||
from mojom.generate import module
|
||||
@@ -176,11 +177,26 @@ def _CollectAllowedImportsFromBuildMetadata(build_metadata_filename):
|
||||
collect(build_metadata_filename)
|
||||
return allowed_imports
|
||||
|
||||
+def _ResolveInclude(mojom_abspath, input_root_paths):
|
||||
+ mojom_abspath = _ResolveRelativeImportPath(mojom_abspath, input_root_paths)
|
||||
+ with codecs.open(mojom_abspath, encoding='utf-8') as f:
|
||||
+ src = f.read()
|
||||
+
|
||||
+ lines = src.splitlines();
|
||||
+ for idx, i in enumerate(lines):
|
||||
+ if i.startswith("#include"):
|
||||
+ include_file = re.findall(r'"([^"]*)"', i)[0]
|
||||
+ if include_file.startswith("../../"):
|
||||
+ include_file = include_file[6::]
|
||||
+ lines[idx] = _ResolveInclude(include_file, input_root_paths)
|
||||
+
|
||||
+ return "\n".join(lines)
|
||||
|
||||
# multiprocessing helper.
|
||||
-def _ParseAstHelper(mojom_abspath, enabled_features):
|
||||
+def _ParseAstHelper(mojom_abspath, enabled_features, input_root_paths):
|
||||
with codecs.open(mojom_abspath, encoding='utf-8') as f:
|
||||
- ast = parser.Parse(f.read(), mojom_abspath)
|
||||
+ src = _ResolveInclude(mojom_abspath, input_root_paths)
|
||||
+ ast = parser.Parse(src, mojom_abspath)
|
||||
conditional_features.RemoveDisabledDefinitions(ast, enabled_features)
|
||||
return mojom_abspath, ast
|
||||
|
||||
@@ -300,7 +316,7 @@ def _ParseMojoms(mojom_files,
|
||||
(path, abs_path) for abs_path, path in mojom_files_to_parse.items())
|
||||
|
||||
logging.info('Parsing %d .mojom into ASTs', len(mojom_files_to_parse))
|
||||
- map_args = ((mojom_abspath, enabled_features)
|
||||
+ map_args = ((mojom_abspath, enabled_features, input_root_paths)
|
||||
for mojom_abspath in mojom_files_to_parse)
|
||||
for mojom_abspath, ast in _Shard(_ParseAstHelper, map_args):
|
||||
loaded_mojom_asts[mojom_abspath] = ast
|
||||
diff --git a/tools/grit/grit/grd_reader.py b/tools/grit/grit/grd_reader.py
|
||||
--- a/tools/grit/grit/grd_reader.py
|
||||
+++ b/tools/grit/grit/grd_reader.py
|
||||
|
||||
Reference in New Issue
Block a user