archrelease: copy trunk to extra-x86_64
[arch-packages.git] / chromium / trunk / add-missing-includes-causing-build-errors.patch
blob3e308ba09dd9ca824e7c474d370a6173edbc611b
1 From 6bbf6b001e085025cf33412b15eb79d46e2e670c Mon Sep 17 00:00:00 2001
2 From: Bruno Pitrus <brunopitrus@hotmail.com>
3 Date: Tue, 11 Apr 2023 19:32:13 +0000
4 Subject: [PATCH] Add missing includes causing build errors with GCC/libstdc++
5 13
7 Bug: 957519
8 Change-Id: If09ae682695714a19e37f3830013a003caba025a
9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330267
10 Reviewed-by: Ken Rockot <rockot@google.com>
11 Auto-Submit: Bruno Pitrus <brunopitrus@hotmail.com>
12 Reviewed-by: Reilly Grant <reillyg@chromium.org>
13 Commit-Queue: Ken Rockot <rockot@google.com>
14 Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
15 Cr-Commit-Position: refs/heads/main@{#1128822}
16 ---
17 components/metrics/psi_memory_parser.h | 1 +
18 components/services/app_service/public/cpp/capability_access.h | 1 +
19 components/soda/constants.h | 1 +
20 device/base/synchronization/one_writer_seqlock.h | 1 +
21 device/bluetooth/public/cpp/bluetooth_uuid.h | 1 +
22 extensions/common/constants.h | 3 +++
23 extensions/renderer/bindings/api_invocation_errors.h | 1 +
24 net/base/parse_number.h | 2 ++
25 net/cookies/cookie_inclusion_status.h | 1 +
26 sandbox/linux/syscall_broker/broker_file_permission.h | 1 +
27 .../blink/public/common/bluetooth/web_bluetooth_device_id.h | 3 +++
28 .../public/common/origin_trials/origin_trial_public_key.h | 1 +
29 ui/gfx/geometry/linear_gradient.h | 2 ++
30 13 files changed, 19 insertions(+)
32 diff --git a/components/metrics/psi_memory_parser.h b/components/metrics/psi_memory_parser.h
33 index b8b22f4ab74..bf02be5074e 100644
34 --- a/components/metrics/psi_memory_parser.h
35 +++ b/components/metrics/psi_memory_parser.h
36 @@ -5,6 +5,7 @@
37 #ifndef COMPONENTS_METRICS_PSI_MEMORY_PARSER_H_
38 #define COMPONENTS_METRICS_PSI_MEMORY_PARSER_H_
40 +#include <cstdint>
41 #include <string>
43 #include "base/gtest_prod_util.h"
44 diff --git a/components/services/app_service/public/cpp/capability_access.h b/components/services/app_service/public/cpp/capability_access.h
45 index 991a993ba99..8050a888d81 100644
46 --- a/components/services/app_service/public/cpp/capability_access.h
47 +++ b/components/services/app_service/public/cpp/capability_access.h
48 @@ -5,6 +5,7 @@
49 #ifndef COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_CAPABILITY_ACCESS_H_
50 #define COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_CAPABILITY_ACCESS_H_
52 +#include <memory>
53 #include <string>
54 #include <utility>
56 diff --git a/components/soda/constants.h b/components/soda/constants.h
57 index 82b2b98b2fa..b455e2a97da 100644
58 --- a/components/soda/constants.h
59 +++ b/components/soda/constants.h
60 @@ -5,6 +5,7 @@
61 #ifndef COMPONENTS_SODA_CONSTANTS_H_
62 #define COMPONENTS_SODA_CONSTANTS_H_
64 +#include <cstdint>
65 #include <string>
67 #include "base/files/file_path.h"
68 diff --git a/device/base/synchronization/one_writer_seqlock.h b/device/base/synchronization/one_writer_seqlock.h
69 index e37a16b81be..b93f14140c6 100644
70 --- a/device/base/synchronization/one_writer_seqlock.h
71 +++ b/device/base/synchronization/one_writer_seqlock.h
72 @@ -6,6 +6,7 @@
73 #define DEVICE_BASE_SYNCHRONIZATION_ONE_WRITER_SEQLOCK_H_
75 #include <atomic>
76 +#include <cstddef>
77 #include <cstdint>
78 #include <type_traits>
80 diff --git a/device/bluetooth/public/cpp/bluetooth_uuid.h b/device/bluetooth/public/cpp/bluetooth_uuid.h
81 index b4bedf01570..d636ba62e2f 100644
82 --- a/device/bluetooth/public/cpp/bluetooth_uuid.h
83 +++ b/device/bluetooth/public/cpp/bluetooth_uuid.h
84 @@ -5,6 +5,7 @@
85 #ifndef DEVICE_BLUETOOTH_PUBLIC_CPP_BLUETOOTH_UUID_H_
86 #define DEVICE_BLUETOOTH_PUBLIC_CPP_BLUETOOTH_UUID_H_
88 +#include <cstdint>
89 #include <ostream>
90 #include <string>
91 #include <vector>
92 diff --git a/extensions/common/constants.h b/extensions/common/constants.h
93 index 0f7db327206..284cc878ff8 100644
94 --- a/extensions/common/constants.h
95 +++ b/extensions/common/constants.h
96 @@ -5,6 +5,9 @@
97 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_
98 #define EXTENSIONS_COMMON_CONSTANTS_H_
100 +#include <cstddef>
101 +#include <cstdint>
103 #include "base/files/file_path.h"
104 #include "base/strings/string_piece_forward.h"
105 #include "build/chromeos_buildflags.h"
106 diff --git a/extensions/renderer/bindings/api_invocation_errors.h b/extensions/renderer/bindings/api_invocation_errors.h
107 index e21700ecfc4..3b704e83b06 100644
108 --- a/extensions/renderer/bindings/api_invocation_errors.h
109 +++ b/extensions/renderer/bindings/api_invocation_errors.h
110 @@ -5,6 +5,7 @@
111 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_
112 #define EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_
114 +#include <cstdint>
115 #include <set>
116 #include <string>
118 diff --git a/net/base/parse_number.h b/net/base/parse_number.h
119 index f4827f7a7da..f923b18a7f4 100644
120 --- a/net/base/parse_number.h
121 +++ b/net/base/parse_number.h
122 @@ -5,6 +5,8 @@
123 #ifndef NET_BASE_PARSE_NUMBER_H_
124 #define NET_BASE_PARSE_NUMBER_H_
126 +#include <cstdint>
128 #include "base/strings/string_piece.h"
129 #include "net/base/net_export.h"
131 diff --git a/net/cookies/cookie_inclusion_status.h b/net/cookies/cookie_inclusion_status.h
132 index 51fb970be72..e8dd6d8d9fa 100644
133 --- a/net/cookies/cookie_inclusion_status.h
134 +++ b/net/cookies/cookie_inclusion_status.h
135 @@ -6,6 +6,7 @@
136 #define NET_COOKIES_COOKIE_INCLUSION_STATUS_H_
138 #include <bitset>
139 +#include <cstdint>
140 #include <ostream>
141 #include <string>
142 #include <vector>
143 diff --git a/sandbox/linux/syscall_broker/broker_file_permission.h b/sandbox/linux/syscall_broker/broker_file_permission.h
144 index 3538da53ca9..e8e32cccd60 100644
145 --- a/sandbox/linux/syscall_broker/broker_file_permission.h
146 +++ b/sandbox/linux/syscall_broker/broker_file_permission.h
147 @@ -6,6 +6,7 @@
148 #define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
150 #include <bitset>
151 +#include <cstdint>
152 #include <string>
154 #include "base/strings/string_piece.h"
155 diff --git a/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h b/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
156 index 8ab06791464..329c8333cdd 100644
157 --- a/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
158 +++ b/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
159 @@ -8,6 +8,9 @@
160 #include <stdint.h>
162 #include <array>
163 +#include <cstdint>
164 +#include <functional>
165 +#include <iosfwd>
166 #include <string>
168 #include "third_party/blink/public/common/common_export.h"
169 diff --git a/third_party/blink/public/common/origin_trials/origin_trial_public_key.h b/third_party/blink/public/common/origin_trials/origin_trial_public_key.h
170 index c1b5f59f57e..246200991a5 100644
171 --- a/third_party/blink/public/common/origin_trials/origin_trial_public_key.h
172 +++ b/third_party/blink/public/common/origin_trials/origin_trial_public_key.h
173 @@ -6,6 +6,7 @@
174 #define THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_TRIALS_ORIGIN_TRIAL_PUBLIC_KEY_H_
176 #include <array>
177 +#include <cstdint>
179 namespace blink {
181 diff --git a/ui/gfx/geometry/linear_gradient.h b/ui/gfx/geometry/linear_gradient.h
182 index d337a7de29b..d327662833f 100644
183 --- a/ui/gfx/geometry/linear_gradient.h
184 +++ b/ui/gfx/geometry/linear_gradient.h
185 @@ -8,6 +8,8 @@
186 #include <stdint.h>
188 #include <array>
189 +#include <cstddef>
190 +#include <cstdint>
191 #include <string>
193 #include "ui/gfx/geometry/geometry_skia_export.h"