Update NTP patch

This commit is contained in:
Ho Cheung 2023-09-04 20:06:30 +08:00
parent 58483936cb
commit 73158b1754

View file

@ -1,9 +1,8 @@
From 9d07f991a3996c0219320b77b6611e80053db0e3 Mon Sep 17 00:00:00 2001 From 953b1d8165d73d341c30300f160e108a9ab4df40 Mon Sep 17 00:00:00 2001
From: Ho Cheung <uioptt24@gmail.com> From: Ho Cheung <uioptt24@gmail.com>
Date: Wed, 28 Jun 2023 02:52:35 +0800 Date: Sun, 3 Sep 2023 11:39:19 +0800
Subject: [PATCH] [Android] Remove discovery module from NTP Subject: [PATCH] [Android] Remove discovery module from NTP
Change-Id: Ied94517abba26e45e18b5a98ca5851a2c37b1c42
--- ---
.../res/layout/new_tab_page_feed_v2_expandable_header.xml | 5 +++-- .../res/layout/new_tab_page_feed_v2_expandable_header.xml | 5 +++--
.../java/res/layout/new_tab_page_multi_feed_header.xml | 5 +++-- .../java/res/layout/new_tab_page_multi_feed_header.xml | 5 +++--
@ -33,7 +32,7 @@ index ee1283cb9a6a0..e15ddc9532cce 100644
<RelativeLayout <RelativeLayout
tools:ignore="RelativeOverlap" tools:ignore="RelativeOverlap"
diff --git a/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml b/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml diff --git a/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml b/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml
index 9c7aa0fb74cb1..df79f5c27f07e 100644 index 483e954de0a49..102ba230e2134 100644
--- a/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml --- a/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml
+++ b/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml +++ b/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
@ -55,7 +54,7 @@ index 9c7aa0fb74cb1..df79f5c27f07e 100644
<LinearLayout <LinearLayout
android:id="@+id/main_content" android:id="@+id/main_content"
diff --git a/components/feed/core/shared_prefs/pref_names.cc b/components/feed/core/shared_prefs/pref_names.cc diff --git a/components/feed/core/shared_prefs/pref_names.cc b/components/feed/core/shared_prefs/pref_names.cc
index e239b42b31ef3..21c7aab6bedd0 100644 index 71586a65fcd92..26e9cfbe72c80 100644
--- a/components/feed/core/shared_prefs/pref_names.cc --- a/components/feed/core/shared_prefs/pref_names.cc
+++ b/components/feed/core/shared_prefs/pref_names.cc +++ b/components/feed/core/shared_prefs/pref_names.cc
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
@ -64,15 +63,15 @@ index e239b42b31ef3..21c7aab6bedd0 100644
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
@@ -21,7 +21,7 @@ const char kVideoPreviewsType[] = "ntp_snippets.video_previews_type"; @@ -20,7 +20,7 @@ const char kArticlesListVisible[] = "ntp_snippets.list_visible";
void RegisterFeedSharedProfilePrefs(PrefRegistrySimple* registry) { void RegisterFeedSharedProfilePrefs(PrefRegistrySimple* registry) {
registry->RegisterBooleanPref(kEnableSnippets, true); registry->RegisterBooleanPref(kEnableSnippets, true);
- registry->RegisterBooleanPref(kArticlesListVisible, true); - registry->RegisterBooleanPref(kArticlesListVisible, true);
+ registry->RegisterBooleanPref(kArticlesListVisible, false); + registry->RegisterBooleanPref(kArticlesListVisible, false);
registry->RegisterIntegerPref(kVideoPreviewsType, 1);
} }
} // namespace prefs
-- --
2.39.1.windows.1 2.42.0.windows.1