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++
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}
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
37 #ifndef COMPONENTS_METRICS_PSI_MEMORY_PARSER_H_
38 #define COMPONENTS_METRICS_PSI_MEMORY_PARSER_H_
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
49 #ifndef COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_CAPABILITY_ACCESS_H_
50 #define COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_CAPABILITY_ACCESS_H_
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
61 #ifndef COMPONENTS_SODA_CONSTANTS_H_
62 #define COMPONENTS_SODA_CONSTANTS_H_
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
73 #define DEVICE_BASE_SYNCHRONIZATION_ONE_WRITER_SEQLOCK_H_
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
85 #ifndef DEVICE_BLUETOOTH_PUBLIC_CPP_BLUETOOTH_UUID_H_
86 #define DEVICE_BLUETOOTH_PUBLIC_CPP_BLUETOOTH_UUID_H_
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
97 #ifndef EXTENSIONS_COMMON_CONSTANTS_H_
98 #define EXTENSIONS_COMMON_CONSTANTS_H_
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
111 #ifndef EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_
112 #define EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_
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
123 #ifndef NET_BASE_PARSE_NUMBER_H_
124 #define NET_BASE_PARSE_NUMBER_H_
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
136 #define NET_COOKIES_COOKIE_INCLUSION_STATUS_H_
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
148 #define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
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
164 +#include <functional>
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
174 #define THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_TRIALS_ORIGIN_TRIAL_PUBLIC_KEY_H_
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
193 #include "ui/gfx/geometry/geometry_skia_export.h"