Skip to content

Commit

Permalink
M122 Final
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 committed Mar 15, 2024
1 parent 501899f commit 07a5919
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 28 deletions.
6 changes: 5 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ Aw, Snap! > Aw, #@%!, this tab's process has gone bye bye...

## Windows 7 Specific

- git apply --reject --ignore-space-change --recount --ignore-whitespace win7-8-8.1-support.patch
- git apply --reject --ignore-space-change --recount --ignore-whitespace win7-8-8.1-support_thorium.patch
- git apply --reject --whitespace=fix win7-8-8.1-support_thorium.patch

- https://github.com/Alex313031/cr-win7/tree/c7f6d3a846d638e76e8c6dced53f0b183e70c3d4
> https://github.com/win32ss/supermium/commit/c11cba154a847b9caed724b1825868ce0affad04
> https://github.com/win32ss/supermium/commit/25239322846e6dc14ff57c6db2dda32f1266d9d0
- Fix thorium_shell

- https://github.com/win32ss/supermium/commit/eda9398979e06be019be585da04267025fbcb1fc#diff-1d869308b9cf99a717940a7206e087c34ec4cede65180dc8bd16a1b0a524be50
- Restore Win7 WebRTC HW decoding flag (and disable by default) > https://source.chromium.org/chromium/chromium/src/+/3682d7432ea6d3a50661ca565759509a57fe3d4c

Expand Down
28 changes: 2 additions & 26 deletions patches/win7-8-8.1-support_thorium.patch
Original file line number Diff line number Diff line change
Expand Up @@ -1239,18 +1239,6 @@ index 3a6e0c9f3774c..c4a802c85d6ed 100644
// The following stubs are provided for when component build is enabled, in
// order to avoid the propagation of delay-loading CoreWinRT to other modules.

diff --git a/base/win/dllmain.cc b/base/win/dllmain.cc
index 0c5546fb1b406..d76f91b9c9a0c 100644
--- a/base/win/dllmain.cc
+++ b/base/win/dllmain.cc
@@ -92,6 +92,7 @@ NOINLINE static void CrashOnProcessDetach() {
// Make DllMain call the listed callbacks. This way any third parties that are
// linked in will also be called.
BOOL WINAPI DllMain(PVOID h, DWORD reason, PVOID reserved) {
+
if (DLL_PROCESS_DETACH == reason && base::win::ShouldCrashOnProcessDetach())
CrashOnProcessDetach();

diff --git a/base/win/hstring_reference.cc b/base/win/hstring_reference.cc
index b254fc64310a1..6b2b1a6290990 100644
--- a/base/win/hstring_reference.cc
Expand Down Expand Up @@ -2521,7 +2509,7 @@ index 8385c597f050e..0c3074038033a 100644
+ "Enable Incognito brand consistency in desktop.";
+const char kIncognitoBrandConsistencyForDesktopDescription[] =
+ "When enabled, removes any theme or background customization done by the "
+ "user on the Incognito UI.";
+ "user when in Incognito mode.";
+
+const char kInheritNativeThemeFromParentWidgetName[] =
+ "Allow widgets to inherit native theme from its parent widget.";
Expand Down Expand Up @@ -6536,18 +6524,6 @@ index 37e2d2a50aa2c..196858a63c713 100644
}

# This target contains utility functions which must only depend on
diff --git a/chrome/chrome_elf/chrome_elf_main.cc b/chrome/chrome_elf/chrome_elf_main.cc
index 7ccdb12bf2258..e957da3f1c1d2 100644
--- a/chrome/chrome_elf/chrome_elf_main.cc
+++ b/chrome/chrome_elf/chrome_elf_main.cc
@@ -59,6 +59,7 @@ bool GetUserDataDirectoryThunk(wchar_t* user_data_dir,
// that will blow up with the loader lock held.
// https://bugs.chromium.org/p/chromium/issues/detail?id=748949#c18
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
+
if (reason == DLL_PROCESS_ATTACH) {
install_static::InitializeProductDetailsForPrimaryModule();
install_static::InitializeProcessType();
diff --git a/chrome/chrome_elf/chrome_elf_security.cc b/chrome/chrome_elf/chrome_elf_security.cc
index e7bda43a9814b..00146f72d7a61 100644
--- a/chrome/chrome_elf/chrome_elf_security.cc
Expand Down Expand Up @@ -11217,7 +11193,7 @@ index 619323f485c6a..7fe31a29e46f6 100644
+ switches::kEnableWin7WebRtcHWH264Decoding) &&
+ video_codec_type == webrtc::kVideoCodecH264 &&
+ base::win::GetVersion() == base::win::Version::WIN7) {
+ DVLOG(1) << "H.264 HW decoding is not supported on Win7";
+ LOG(WARNING) << "H.264 HW decoding is not supported on Windows 7";
+ return false;
+ }
+#endif // BUILDFLAG(IS_WIN)
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/browser/thorium_flag_entries.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
{"enable-win7-webrtc-hw-h264-decoding",
"Windows 7 WebRTC H.264 Hardware Decoding",
"Enables H.264 hardware decode acceleration for WebRTC on Windows 7.",
kOsWin, SINGLE_VALUE_TYPE("enable-win7-webrtc-hw-h264-decoding")},
kOsWin, SINGLE_VALUE_TYPE(switches::kEnableWin7WebRtcHWH264Decoding)},
{"force-gdi",
flag_descriptions::kForceGdiName,
flag_descriptions::kForceGdiDescription,
Expand Down

0 comments on commit 07a5919

Please sign in to comment.