Disable Real Box
This commit is contained in:
@@ -280,6 +280,7 @@ Timezone-customization.patch
|
||||
00Block-Intents-While-Locked.patch
|
||||
00Keep-Manta-Service-Disabled.patch
|
||||
00Disable-Service-and-Shared-workers-on-3P-iframe.patch
|
||||
00Disable-Real-Box.patch
|
||||
|
||||
00Temp-PerformanceNavigationTiming-privacy-fix.patch
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
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
|
||||
@@ -130,7 +130,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,
|
||||
@@ -207,8 +207,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,
|
||||
@@ -243,8 +243,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
|
||||
Reference in New Issue
Block a user