Skip to content

Commit c483b4c

Browse files
committed
Add extra channel info
1 parent 483a1ba commit c483b4c

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
description: change extra channel info to "Ungoogled Chromium"
2+
author: Wengling Chen <[email protected]>
3+
4+
---
5+
chrome/common/channel_info_posix.cc | 2 +-
6+
chrome/common/channel_info_win.cc | 2 +-
7+
2 files changed, 2 insertions(+), 2 deletions(-)
8+
9+
--- a/chrome/common/channel_info_posix.cc
10+
+++ b/chrome/common/channel_info_posix.cc
11+
@@ -21,7 +21,7 @@ version_info::Channel GetChannelImpl(std::string* modifier_out) {
12+
version_info::Channel channel = version_info::Channel::UNKNOWN;
13+
std::string modifier;
14+
15+
- char* env = getenv("CHROME_VERSION_EXTRA");
16+
+ char* env = "Ungoogled Chromium";
17+
if (env)
18+
modifier = env;
19+
20+
--- a/chrome/common/channel_info_win.cc
21+
+++ b/chrome/common/channel_info_win.cc
22+
@@ -22,7 +22,7 @@ std::string GetChannelName() {
23+
#endif // defined(DCHECK_IS_CONFIGURABLE)
24+
return base::UTF16ToASCII(channel);
25+
#else
26+
- return std::string();
27+
+ return std::string("Ungoogled Chromium");
28+
#endif
29+
}
30+

patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
8686
extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
8787
extra/ungoogled-chromium/remove-uneeded-ui.patch
8888
extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
89+
extra/ungoogled-chromium/add-extra-channel-info.patch
8990
extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch
9091
extra/bromite/flag-max-connections-per-host.patch
9192
extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch

0 commit comments

Comments
 (0)