-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
patches/extra/ungoogled-chromium/add-flags-for-existing-switches.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
--- a/chrome/browser/about_flags.cc | ||
+++ b/chrome/browser/about_flags.cc | ||
@@ -3571,10 +3571,12 @@ const FeatureEntry::FeatureVariation kVc | ||
#include "chrome/browser/ungoogled_flag_choices.h" | ||
#include "chrome/browser/bromite_flag_choices.h" | ||
#include "chrome/browser/ungoogled_platform_flag_choices.h" | ||
+#include "chrome/browser/existing_switch_flag_choices.h" | ||
const FeatureEntry kFeatureEntries[] = { | ||
#include "chrome/browser/ungoogled_flag_entries.h" | ||
#include "chrome/browser/bromite_flag_entries.h" | ||
#include "chrome/browser/ungoogled_platform_flag_entries.h" | ||
+#include "chrome/browser/existing_switch_flag_entries.h" | ||
// Include generated flags for flag unexpiry; see //docs/flag_expiry.md and | ||
// //tools/flags/generate_unexpire_flags.py. | ||
#include "build/chromeos_buildflags.h" | ||
--- /dev/null | ||
+++ b/chrome/browser/existing_switch_flag_choices.h | ||
@@ -0,0 +1,21 @@ | ||
+// Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved. | ||
+// Use of this source code is governed by a BSD-style license that can be | ||
+// found in the LICENSE file. | ||
+ | ||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_ | ||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_ | ||
+const FeatureEntry::Choice kWebRTCIPPolicy[] = { | ||
+ {"Disable non proxied udp", | ||
+ "webrtc-ip-handling-policy", | ||
+ "disable_non_proxied_udp"}, | ||
+ {"Default", | ||
+ "webrtc-ip-handling-policy", | ||
+ "default"}, | ||
+ {"Default public and private interfaces", | ||
+ "webrtc-ip-handling-policy", | ||
+ "default_public_and_private_interfaces"}, | ||
+ {"Default public interface only", | ||
+ "webrtc-ip-handling-policy", | ||
+ "default_public_interface_only"}, | ||
+}; | ||
+#endif // CHROME_BROWSER_EXISTING_SWITCH_FLAG_CHOICES_H_ | ||
--- /dev/null | ||
+++ b/chrome/browser/existing_switch_flag_entries.h | ||
@@ -0,0 +1,43 @@ | ||
+// Copyright (c) 2023 The ungoogled-chromium Authors. All rights reserved. | ||
+// Use of this source code is governed by a BSD-style license that can be | ||
+// found in the LICENSE file. | ||
+ | ||
+#ifndef CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_ | ||
+#define CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_ | ||
+ {"disable-top-sites", | ||
+ "Disable Top Sites", | ||
+ "Disables the top sites and most visited entries on the new tab page. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, SINGLE_VALUE_TYPE("disable-top-sites")}, | ||
+ {"disable-webgl", | ||
+ "Disable WebGL", | ||
+ "Disable all versions of WebGL. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, SINGLE_VALUE_TYPE("disable-webgl")}, | ||
+ {"enable-low-end-device-mode", | ||
+ "Enable low-end device mode", | ||
+ "Force low-end device mode when set. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, SINGLE_VALUE_TYPE("enable-low-end-device-mode")}, | ||
+ {"force-dark-mode", | ||
+ "Force Dark Mode", | ||
+ "Forces dark mode in UI for platforms that support it. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, SINGLE_VALUE_TYPE("force-dark-mode")}, | ||
+ {"incognito", | ||
+ "Start in incognito", | ||
+ "Start in Incognito. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsDesktop, SINGLE_VALUE_TYPE("incognito")}, | ||
+ {"no-pings", | ||
+ "No Pings", | ||
+ "Don't send hyperlink auditing pings. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, SINGLE_VALUE_TYPE("no-pings")}, | ||
+ {"start-maximized", | ||
+ "Start Maximized", | ||
+ "Starts the browser maximized, regardless of any previous settings. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsDesktop, SINGLE_VALUE_TYPE("start-maximized")}, | ||
+ {"web-ui-dark-mode", | ||
+ "Web UI Dark Mode", | ||
+ "Whether to enable 'dark mode' enhancements for UIs implemented with web technologies. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, FEATURE_VALUE_TYPE(features::kWebUIDarkMode)}, | ||
+ {"webrtc-ip-handling-policy", | ||
+ "WebRTC IP policy", | ||
+ "Restrict which IP addresses and interfaces WebRTC uses. Chromium feature, ungoogled-chromium flag.", | ||
+ kOsAll, MULTI_VALUE_TYPE(kWebRTCIPPolicy)}, | ||
+#endif // CHROME_BROWSER_EXISTING_SWITCH_FLAG_ENTRIES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters