mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-test.git
synced 2025-02-24 18:12:47 +00:00
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
From 046e303d75c84662b316a84c3fb6c163d60f7c4d Mon Sep 17 00:00:00 2001
|
|
From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
|
|
Date: Mon, 30 May 2022 00:43:20 +0300
|
|
Subject: [PATCH 3/5] Remove voice search button
|
|
|
|
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.
|
|
|
|
--- a/ui/webui/resources/cr_components/omnibox/realbox.html
|
|
+++ b/ui/webui/resources/cr_components/omnibox/realbox.html
|
|
@@ -291,13 +291,6 @@
|
|
<cr-realbox-icon id="icon" match="[[selectedMatch_]]"
|
|
default-icon="[[realboxIcon_]]" in-searchbox>
|
|
</cr-realbox-icon>
|
|
- <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_]]">
|