2024-03-12 20:47:10 +01:00
|
|
|
diff --git chrome/browser/ui/views/sad_tab_view.cc chrome/browser/ui/views/sad_tab_view.cc
|
2024-10-24 17:05:31 +02:00
|
|
|
index 28a1b08d6c699..22a43d559bec9 100644
|
2024-03-12 20:47:10 +01:00
|
|
|
--- chrome/browser/ui/views/sad_tab_view.cc
|
|
|
|
+++ chrome/browser/ui/views/sad_tab_view.cc
|
2024-10-24 17:05:31 +02:00
|
|
|
@@ -687,6 +687,11 @@ void SadTabView::OnBoundsChanged(const gfx::Rect& previous_bounds) {
|
2024-03-12 20:47:10 +01:00
|
|
|
title_->SizeToFit(max_width);
|
|
|
|
}
|
|
|
|
|
|
|
|
+// static
|
|
|
|
+std::u16string SadTabView::ErrorToString(int error_code) {
|
|
|
|
+ return ::ErrorToString(error_code);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
SadTab* SadTab::Create(content::WebContents* web_contents, SadTabKind kind) {
|
|
|
|
return new SadTabView(web_contents, kind);
|
|
|
|
}
|
|
|
|
diff --git chrome/browser/ui/views/sad_tab_view.h chrome/browser/ui/views/sad_tab_view.h
|
|
|
|
index d6cb0e1a28eb2..59aca7bbb17c3 100644
|
|
|
|
--- chrome/browser/ui/views/sad_tab_view.h
|
|
|
|
+++ chrome/browser/ui/views/sad_tab_view.h
|
|
|
|
@@ -56,6 +56,8 @@ class SadTabView : public SadTab, public views::View {
|
|
|
|
// Overridden from views::View:
|
|
|
|
void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
|
|
|
|
|
|
|
|
+ static std::u16string ErrorToString(int error_code);
|
|
|
|
+
|
|
|
|
protected:
|
|
|
|
// Overridden from views::View:
|
|
|
|
void OnPaint(gfx::Canvas* canvas) override;
|