Add patch to remove chromium search widget (#28753)

* Add patch to remove chromium search widget

* Add lint suppression for search widget
This commit is contained in:
Deep Pandya
2025-04-23 10:38:26 -04:00
committed by GitHub
parent 4ec3fa96e6
commit 53ba9ecc1d
5 changed files with 22 additions and 3 deletions
-1
View File
@@ -106,7 +106,6 @@ brave_java_resources = [
"java/res/drawable-mdpi/uphold_green.png",
"java/res/drawable-mdpi/uphold_white.png",
"java/res/drawable-night-nodpi/ic_quick_action_search_and_bookmark_widget_preview.png",
"java/res/drawable-night-nodpi/widget_preview.png",
"java/res/drawable-night/bookmark_empty_state_illustration.xml",
"java/res/drawable-night/ellipse_217.xml",
"java/res/drawable-night/history_empty_state_illustration.xml",
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

@@ -37,6 +37,10 @@
<ignore regexp="The resource `R.drawable.quick_action_search_widget_.*` appears to be unused"/>
<ignore regexp="The resource `R.drawable.hairline_border` appears to be unused"/>
<ignore regexp="The resource `R.string.dino_widget_description` appears to be unused"/>
<ignore regexp="The resource `R.string.search_widget_description` appears to be unused"/>
<ignore regexp="The resource `R.string.search_widget_title` appears to be unused"/>
<ignore regexp="The resource `R.xml.search_widget_info` appears to be unused"/>
<ignore regexp="The resource `R.drawable.widget_preview` appears to be unused"/>
</issue>
<issue id="UnsafeOptInUsageError">
<ignore regexp='(markerClass = androidx.media3.common.util.UnstableApi.class)' />
@@ -1,5 +1,5 @@
diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml
index 364f021a07e1dd20463ccadeacecbfd1361cb93c..8477af119562f001a974b7e08180c849512c6c78 100644
index 364f021a07e1dd20463ccadeacecbfd1361cb93c..59b832d2abde6a8cd4c025a281a3069566b04fcb 100644
--- a/chrome/android/java/AndroidManifest.xml
+++ b/chrome/android/java/AndroidManifest.xml
@@ -28,6 +28,7 @@ by a child template that "extends" this file.
@@ -90,7 +90,23 @@ index 364f021a07e1dd20463ccadeacecbfd1361cb93c..8477af119562f001a974b7e08180c849
<!-- Bookmarks widget -->
<receiver android:name="com.google.android.apps.chrome.appwidget.bookmarks.BookmarkThumbnailWidgetProvider"
@@ -1202,6 +1218,7 @@ by a child template that "extends" this file.
@@ -932,6 +948,7 @@ by a child template that "extends" this file.
android:exported="false" />
<!-- Search widget -->
+ <!--
<receiver
android:name="org.chromium.chrome.browser.searchwidget.SearchWidgetProvider"
android:label="@string/search_widget_title"
@@ -943,6 +960,7 @@ by a child template that "extends" this file.
android:name="android.appwidget.provider"
android:resource="@xml/search_widget_info" />
</receiver>
+ -->
<!-- Search Activity -->
<activity android:name="org.chromium.chrome.browser.searchwidget.SearchActivity"
@@ -1202,6 +1220,7 @@ by a child template that "extends" this file.
</activity>
{% endif %}