helium/core: disable touch ui

This commit is contained in:
wukko
2025-10-06 23:33:53 +06:00
parent 1da4771ecd
commit 0fbca2dcbd
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
--- a/ui/base/pointer/touch_ui_controller.cc
+++ b/ui/base/pointer/touch_ui_controller.cc
@@ -175,13 +175,7 @@ void TouchUiController::TouchUiScoperFor
// static
TouchUiController* TouchUiController::Get() {
static base::NoDestructor<TouchUiController> instance([] {
- const std::string switch_value =
- base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kTopChromeTouchUi);
- if (switch_value == switches::kTopChromeTouchUiDisabled)
- return TouchUiState::kDisabled;
- const bool enabled = switch_value == switches::kTopChromeTouchUiEnabled;
- return enabled ? TouchUiState::kEnabled : TouchUiState::kAuto;
+ return TouchUiState::kDisabled;
}());
return instance.get();
}

View File

@@ -169,6 +169,7 @@ helium/core/reduce-accept-language-headers.patch
helium/core/disable-ad-topics-and-etc.patch
helium/core/enable-parallel-downloading.patch
helium/core/infinite-tab-freezing.patch
helium/core/disable-touch-ui.patch
helium/settings/move-search-suggest.patch
helium/settings/remove-autofill.patch