aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-ui_base_resource_resource__bundle__freebsd.cc
blob: 69cc2c49bb82d48ca4cf1eed8f67c7b0fb3ca654 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- ui/base/resource/resource_bundle_freebsd.cc.orig	2021-01-25 11:28:23 UTC
+++ ui/base/resource/resource_bundle_freebsd.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/resource/resource_bundle.h"
+
+#include "base/logging.h"
+#include "base/macros.h"
+#include "ui/gfx/image/image.h"
+
+namespace ui {
+
+void ResourceBundle::LoadCommonResources() {
+  LoadChromeResources();
+}
+
+gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) {
+  return GetImageNamed(resource_id);
+}
+
+}  // namespace ui