add CROMITE_FEATURE

This commit is contained in:
Carmelo Messina
2023-11-18 15:15:21 +01:00
parent 3046dcc14b
commit c64a775129
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -75,7 +75,7 @@ diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
#include "services/media_session/public/cpp/features.h"
#include "services/network/public/cpp/features.h"
#include "services/network/public/cpp/network_switches.h"
@@ -8613,6 +8614,11 @@ const FeatureEntry kFeatureEntries[] = {
@@ -8594,6 +8595,11 @@ const FeatureEntry kFeatureEntries[] = {
FEATURE_VALUE_TYPE(page_info::kPageInfoHideSiteSettings)},
#endif // !BUILDFLAG(IS_ANDROID)
@@ -412,9 +412,9 @@ new file mode 100644
+namespace firewall {
+namespace features {
+
+BASE_FEATURE(kEnableFirewall,
+ "EnableFirewall",
+ base::FEATURE_ENABLED_BY_DEFAULT);
+CROMITE_FEATURE(kEnableFirewall,
+ "EnableFirewall",
+ base::FEATURE_ENABLED_BY_DEFAULT);
+
+} // namespace features
+} // namespace firewall
@@ -23,7 +23,7 @@ License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5430,6 +5430,9 @@ const FeatureEntry kFeatureEntries[] = {
@@ -5416,6 +5416,9 @@ const FeatureEntry kFeatureEntries[] = {
{"system-keyboard-lock", flag_descriptions::kSystemKeyboardLockName,
flag_descriptions::kSystemKeyboardLockDescription, kOsDesktop,
FEATURE_VALUE_TYPE(features::kSystemKeyboardLock)},
@@ -190,9 +190,9 @@ diff --git a/ui/base/ui_base_features.cc b/ui/base/ui_base_features.cc
"SystemKeyboardLock",
base::FEATURE_ENABLED_BY_DEFAULT);
+BASE_FEATURE(kSystemKeyboardProtection,
+ "SystemKeyboardProtection",
+ base::FEATURE_ENABLED_BY_DEFAULT);
+CROMITE_FEATURE(kSystemKeyboardProtection,
+ "SystemKeyboardProtection",
+ base::FEATURE_ENABLED_BY_DEFAULT);
+
+bool IsSystemKeyboardProtectionEnabled() {
+ return base::FeatureList::IsEnabled(kSystemKeyboardProtection);