62 lines
2.5 KiB
Diff
62 lines
2.5 KiB
Diff
From: uazo <uazo@users.noreply.github.com>
|
|
Date: Sun, 5 Nov 2023 17:59:54 +0000
|
|
Subject: Disable Real Box
|
|
|
|
Real-box is search box in ntp
|
|
---
|
|
chrome/browser/resources/new_tab_page/app.html | 5 -----
|
|
components/search/ntp_features.cc | 10 +++++-----
|
|
2 files changed, 5 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/chrome/browser/resources/new_tab_page/app.html b/chrome/browser/resources/new_tab_page/app.html
|
|
--- a/chrome/browser/resources/new_tab_page/app.html
|
|
+++ b/chrome/browser/resources/new_tab_page/app.html
|
|
@@ -403,11 +403,6 @@
|
|
hidden$="[[!logoEnabled_]]">
|
|
</ntp-logo>
|
|
<div id="realboxContainer">
|
|
- <ntp-realbox id="realbox" is-dark="[[theme_.isDark]]"
|
|
- single-colored-icons="[[theme_.themeRealboxIcons]]"
|
|
- on-open-lens-search="onOpenLensSearch_"
|
|
- on-open-voice-search="onOpenVoiceSearch_" shown$="[[realboxShown_]]">
|
|
- </ntp-realbox>
|
|
<template is="dom-if" if="[[showLensUploadDialog_]]" restamp>
|
|
<ntp-lens-upload-dialog id="lensUploadDialog"
|
|
on-close-lens-search="onCloseLensSearch_">
|
|
diff --git a/components/search/ntp_features.cc b/components/search/ntp_features.cc
|
|
--- a/components/search/ntp_features.cc
|
|
+++ b/components/search/ntp_features.cc
|
|
@@ -135,7 +135,7 @@ BASE_FEATURE(kNtpHandleMostVisitedNavigationExplicitly,
|
|
base::FEATURE_ENABLED_BY_DEFAULT);
|
|
|
|
// If enabled, logo will be shown.
|
|
-BASE_FEATURE(kNtpLogo, "NtpLogo", base::FEATURE_ENABLED_BY_DEFAULT);
|
|
+BASE_FEATURE(kNtpLogo, "NtpLogo", base::FEATURE_DISABLED_BY_DEFAULT);
|
|
|
|
// If enabled, logo will fill up less vertical space.
|
|
BASE_FEATURE(kNtpReducedLogoSpace,
|
|
@@ -212,8 +212,8 @@ BASE_FEATURE(kNtpMostVisitedReflowOnOverflow,
|
|
|
|
// If enabled, OneGoogleBar will be shown.
|
|
BASE_FEATURE(kNtpOneGoogleBar,
|
|
- "NtpOneGoogleBar",
|
|
- base::FEATURE_ENABLED_BY_DEFAULT);
|
|
+ "NtpOneGoogleBar", // disabled
|
|
+ base::FEATURE_DISABLED_BY_DEFAULT); // by default
|
|
|
|
// If enabled, Google Photos module will be shown.
|
|
BASE_FEATURE(kNtpPhotosModule,
|
|
@@ -248,8 +248,8 @@ BASE_FEATURE(kNtpFeedModule,
|
|
|
|
// If enabled, Google Lens image search will be shown in the NTP Realbox.
|
|
BASE_FEATURE(kNtpRealboxLensSearch,
|
|
- "NtpRealboxLensSearch",
|
|
- base::FEATURE_ENABLED_BY_DEFAULT);
|
|
+ "NtpRealboxLensSearch", // disabled
|
|
+ base::FEATURE_DISABLED_BY_DEFAULT); // by default
|
|
|
|
// If enabled, Google Lens image search will call Lens v3 direct upload
|
|
// endpoint instead of uploading to Scotty.
|
|
--
|
|
2.25.1
|