chromium-browser-stable-test/0003-Remove-voice-search-button.patch

25 lines
1.1 KiB
Diff
Raw Normal View History

2023-10-16 23:43:39 +03:00
From 046e303d75c84662b316a84c3fb6c163d60f7c4d Mon Sep 17 00:00:00 2001
2023-02-08 18:01:37 +00:00
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Date: Mon, 30 May 2022 00:43:20 +0300
2023-10-16 23:43:39 +03:00
Subject: [PATCH 3/5] Remove voice search button
2023-02-08 18:01:37 +00:00
Remove voice search button from chrome://new-tab-page.
Firstly, Google APIs keys do not work now and this button also does not work.
Secondly, we use Yandex as the default search for most users, and Google's voice search is irrelevant.
2022-05-30 00:48:20 +03:00
--- a/chrome/browser/resources/new_tab_page/realbox/realbox.html
+++ b/chrome/browser/resources/new_tab_page/realbox/realbox.html
2024-02-22 00:08:13 +00:00
@@ -291,12 +291,6 @@
2023-03-09 17:17:26 +03:00
<cr-realbox-icon id="icon" match="[[selectedMatch_]]"
2022-05-30 00:48:20 +03:00
default-icon="[[realboxIcon_]]" in-searchbox>
2023-03-09 17:17:26 +03:00
</cr-realbox-icon>
2024-02-22 00:08:13 +00:00
- <div class="realbox-icon-button-container voice"
- hidden="[[!realboxChromeRefreshTheming]]">
- <button id="voiceSearchButton" class="realbox-icon-button"
- on-click="onVoiceSearchClick_" title="$i18n{voiceSearchButtonLabel}">
- </button>
- </div>
<div class="realbox-icon-button-container lens"
hidden="[[!realboxChromeRefreshTheming]]">
<template is="dom-if" if="[[realboxLensSearchEnabled_]]">