Browse Source

Add patch to use the default search icon in locationbar

Blaise 3 năm trước cách đây
mục cha
commit
31c0032557
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      tweaks/visual/default-search-icon.patch

+ 13 - 0
tweaks/visual/default-search-icon.patch

@@ -0,0 +1,13 @@
+## Use the default search icon in the locationbar instead of the search engine's icon
+
+--- a/components/omnibox/browser/omnibox_view.cc
++++ b/components/omnibox/browser/omnibox_view.cc
+@@ -205,8 +205,6 @@ ui::ImageModel OmniboxView::GetIcon(int
+   AutocompleteMatch match = model_->CurrentMatch(nullptr);
+   if (AutocompleteMatch::IsSearchType(match.type)) {
+     // For search queries, display default search engine's favicon.
+-    favicon = model_->client()->GetFaviconForDefaultSearchProvider(
+-        std::move(on_icon_fetched));
+ 
+   } else {
+     // For site suggestions, display site's favicon.