File chromium-97-ScrollView-reference.patch of Package ungoogled-chromium

From ce58517e546f3f3433931609683b5b4e455bbb7f Mon Sep 17 00:00:00 2001
From: Stephan Hartmann <stha09@googlemail.com>
Date: Fri, 5 Nov 2021 15:48:05 +0000
Subject: [PATCH] GCC: fix undefined reference to ScrollView::SetContents()

---
 ui/views/controls/scroll_view.h | 3 +++
 1 file changed, 3 insertions(+)

Index: chromium-98.0.4758.80/ui/views/controls/scroll_view.h
===================================================================
--- chromium-98.0.4758.80.orig/ui/views/controls/scroll_view.h
+++ chromium-98.0.4758.80/ui/views/controls/scroll_view.h
@@ -389,6 +389,9 @@ class VIEWS_EXPORT ScrollView : public V
 // ScrollView::SetContents<View> template is available with which to link.
 template View* ScrollView::SetContents<View>(std::unique_ptr<View> a_view);
 
+// Required for WebAppUrlHandlerIntentPickerView
+template View* ScrollView::SetContents<View>(std::unique_ptr<View> a_view);
+
 BEGIN_VIEW_BUILDER(VIEWS_EXPORT, ScrollView, View)
 VIEW_BUILDER_VIEW_TYPE_PROPERTY(View, Contents)
 VIEW_BUILDER_PROPERTY(ui::LayerType, ContentsLayerType)
openSUSE Build Service is sponsored by