chromium-112-gcc-13-0007-misc.patch 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. These patches are in the same file as they touch the same files and
  2. need to be applied in order.
  3. https://chromium-review.googlesource.com/c/chromium/src/+/4401098
  4. https://chromium-review.googlesource.com/c/chromium/src/+/4401098
  5. https://chromium-review.googlesource.com/c/chromium/src/+/4394541
  6. https://chromium-review.googlesource.com/c/chromium/src/+/4400997
  7. https://chromium-review.googlesource.com/c/chromium/src/+/4330267
  8. From dae4f1f4114ff6c6811aa3a0410e88e7a53b0531 Mon Sep 17 00:00:00 2001
  9. From: Stephan Hartmann <stha09@googlemail.com>
  10. Date: Wed, 05 Apr 2023 17:46:42 +0000
  11. Subject: [PATCH] IWYU: add cstdint for uint8_t in web_bluetooth_device_id
  12. Bug: 957519
  13. Change-Id: I2dba0b0088f6975d7ce59c3a14427d2dc5838477
  14. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4401098
  15. Reviewed-by: Jack Hsieh <chengweih@chromium.org>
  16. Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
  17. Cr-Commit-Position: refs/heads/main@{#1126677}
  18. --- a/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
  19. +++ b/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
  20. @@ -5,6 +5,8 @@
  21. #ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_BLUETOOTH_WEB_BLUETOOTH_DEVICE_ID_H_
  22. #define THIRD_PARTY_BLINK_PUBLIC_COMMON_BLUETOOTH_WEB_BLUETOOTH_DEVICE_ID_H_
  23. +#include <stdint.h>
  24. +
  25. #include <array>
  26. #include <string>
  27. From 83de2fa6806fc337e61fef0bd156dc2602542db3 Mon Sep 17 00:00:00 2001
  28. From: Stephan Hartmann <stha09@googlemail.com>
  29. Date: Tue, 04 Apr 2023 16:10:03 +0000
  30. Subject: [PATCH] IWYU: add cstdint for uintptr_t in device::OneWriterSeqLock
  31. Bug: 957519
  32. Change-Id: I283f5b0cc34a268bea5dcb03c34726cbec905ea7
  33. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4394541
  34. Reviewed-by: Ken Rockot <rockot@google.com>
  35. Commit-Queue: Ken Rockot <rockot@google.com>
  36. Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
  37. Cr-Commit-Position: refs/heads/main@{#1126023}
  38. --- a/device/base/synchronization/one_writer_seqlock.h
  39. +++ b/device/base/synchronization/one_writer_seqlock.h
  40. @@ -6,6 +6,7 @@
  41. #define DEVICE_BASE_SYNCHRONIZATION_ONE_WRITER_SEQLOCK_H_
  42. #include <atomic>
  43. +#include <cstdint>
  44. #include <type_traits>
  45. #include "base/atomicops.h"
  46. From 7815db39abc8ccf64305c5fbac7e0f88bcc8b371 Mon Sep 17 00:00:00 2001
  47. From: Stephan Hartmann <stha09@googlemail.com>
  48. Date: Wed, 05 Apr 2023 21:14:20 +0000
  49. Subject: [PATCH] IWYU: add stdint.h for integer types in //ui
  50. Bug: 957519
  51. Change-Id: I33698e997a32c36db19775f0cf4b22fb13cee349
  52. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4400997
  53. Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
  54. Reviewed-by: Scott Violet <sky@chromium.org>
  55. Cr-Commit-Position: refs/heads/main@{#1126829}
  56. --- a/ui/base/prediction/kalman_filter.h
  57. +++ b/ui/base/prediction/kalman_filter.h
  58. @@ -5,6 +5,8 @@
  59. #ifndef UI_BASE_PREDICTION_KALMAN_FILTER_H_
  60. #define UI_BASE_PREDICTION_KALMAN_FILTER_H_
  61. +#include <stdint.h>
  62. +
  63. #include "base/component_export.h"
  64. #include "ui/gfx/geometry/matrix3_f.h"
  65. --- a/ui/events/types/scroll_types.h
  66. +++ b/ui/events/types/scroll_types.h
  67. @@ -5,6 +5,8 @@
  68. #ifndef UI_EVENTS_TYPES_SCROLL_TYPES_H_
  69. #define UI_EVENTS_TYPES_SCROLL_TYPES_H_
  70. +#include <stdint.h>
  71. +
  72. namespace ui {
  73. enum class ScrollGranularity : uint8_t {
  74. --- a/ui/gfx/geometry/linear_gradient.h
  75. +++ b/ui/gfx/geometry/linear_gradient.h
  76. @@ -5,6 +5,8 @@
  77. #ifndef UI_GFX_LINEAR_GRADIENT_H_
  78. #define UI_GFX_LINEAR_GRADIENT_H_
  79. +#include <stdint.h>
  80. +
  81. #include <array>
  82. #include <string>
  83. From 6bbf6b001e085025cf33412b15eb79d46e2e670c Mon Sep 17 00:00:00 2001
  84. From: Bruno Pitrus <brunopitrus@hotmail.com>
  85. Date: Tue, 11 Apr 2023 19:32:13 +0000
  86. Subject: [PATCH] Add missing includes causing build errors with GCC/libstdc++ 13
  87. Bug: 957519
  88. Change-Id: If09ae682695714a19e37f3830013a003caba025a
  89. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330267
  90. Reviewed-by: Ken Rockot <rockot@google.com>
  91. Auto-Submit: Bruno Pitrus <brunopitrus@hotmail.com>
  92. Reviewed-by: Reilly Grant <reillyg@chromium.org>
  93. Commit-Queue: Ken Rockot <rockot@google.com>
  94. Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
  95. Cr-Commit-Position: refs/heads/main@{#1128822}
  96. --- a/components/metrics/psi_memory_parser.h
  97. +++ b/components/metrics/psi_memory_parser.h
  98. @@ -5,6 +5,7 @@
  99. #ifndef COMPONENTS_METRICS_PSI_MEMORY_PARSER_H_
  100. #define COMPONENTS_METRICS_PSI_MEMORY_PARSER_H_
  101. +#include <cstdint>
  102. #include <string>
  103. #include "base/gtest_prod_util.h"
  104. --- a/components/services/app_service/public/cpp/capability_access.h
  105. +++ b/components/services/app_service/public/cpp/capability_access.h
  106. @@ -5,6 +5,7 @@
  107. #ifndef COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_CAPABILITY_ACCESS_H_
  108. #define COMPONENTS_SERVICES_APP_SERVICE_PUBLIC_CPP_CAPABILITY_ACCESS_H_
  109. +#include <memory>
  110. #include <string>
  111. #include <utility>
  112. --- a/components/soda/constants.h
  113. +++ b/components/soda/constants.h
  114. @@ -5,6 +5,7 @@
  115. #ifndef COMPONENTS_SODA_CONSTANTS_H_
  116. #define COMPONENTS_SODA_CONSTANTS_H_
  117. +#include <cstdint>
  118. #include <string>
  119. #include "base/files/file_path.h"
  120. --- a/device/base/synchronization/one_writer_seqlock.h
  121. +++ b/device/base/synchronization/one_writer_seqlock.h
  122. @@ -6,6 +6,7 @@
  123. #define DEVICE_BASE_SYNCHRONIZATION_ONE_WRITER_SEQLOCK_H_
  124. #include <atomic>
  125. +#include <cstddef>
  126. #include <cstdint>
  127. #include <type_traits>
  128. --- a/device/bluetooth/public/cpp/bluetooth_uuid.h
  129. +++ b/device/bluetooth/public/cpp/bluetooth_uuid.h
  130. @@ -5,6 +5,7 @@
  131. #ifndef DEVICE_BLUETOOTH_PUBLIC_CPP_BLUETOOTH_UUID_H_
  132. #define DEVICE_BLUETOOTH_PUBLIC_CPP_BLUETOOTH_UUID_H_
  133. +#include <cstdint>
  134. #include <ostream>
  135. #include <string>
  136. #include <vector>
  137. --- a/extensions/common/constants.h
  138. +++ b/extensions/common/constants.h
  139. @@ -5,6 +5,9 @@
  140. #ifndef EXTENSIONS_COMMON_CONSTANTS_H_
  141. #define EXTENSIONS_COMMON_CONSTANTS_H_
  142. +#include <cstddef>
  143. +#include <cstdint>
  144. +
  145. #include "base/files/file_path.h"
  146. #include "base/strings/string_piece_forward.h"
  147. #include "build/chromeos_buildflags.h"
  148. --- a/extensions/renderer/bindings/api_invocation_errors.h
  149. +++ b/extensions/renderer/bindings/api_invocation_errors.h
  150. @@ -5,6 +5,7 @@
  151. #ifndef EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_
  152. #define EXTENSIONS_RENDERER_BINDINGS_API_INVOCATION_ERRORS_H_
  153. +#include <cstdint>
  154. #include <set>
  155. #include <string>
  156. --- a/net/base/parse_number.h
  157. +++ b/net/base/parse_number.h
  158. @@ -5,6 +5,8 @@
  159. #ifndef NET_BASE_PARSE_NUMBER_H_
  160. #define NET_BASE_PARSE_NUMBER_H_
  161. +#include <cstdint>
  162. +
  163. #include "base/strings/string_piece.h"
  164. #include "net/base/net_export.h"
  165. --- a/net/cookies/cookie_inclusion_status.h
  166. +++ b/net/cookies/cookie_inclusion_status.h
  167. @@ -6,6 +6,7 @@
  168. #define NET_COOKIES_COOKIE_INCLUSION_STATUS_H_
  169. #include <bitset>
  170. +#include <cstdint>
  171. #include <ostream>
  172. #include <string>
  173. #include <vector>
  174. --- a/sandbox/linux/syscall_broker/broker_file_permission.h
  175. +++ b/sandbox/linux/syscall_broker/broker_file_permission.h
  176. @@ -6,6 +6,7 @@
  177. #define SANDBOX_LINUX_SYSCALL_BROKER_BROKER_FILE_PERMISSION_H_
  178. #include <bitset>
  179. +#include <cstdint>
  180. #include <string>
  181. #include "base/strings/string_piece.h"
  182. --- a/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
  183. +++ b/third_party/blink/public/common/bluetooth/web_bluetooth_device_id.h
  184. @@ -8,6 +8,9 @@
  185. #include <stdint.h>
  186. #include <array>
  187. +#include <cstdint>
  188. +#include <functional>
  189. +#include <iosfwd>
  190. #include <string>
  191. #include "third_party/blink/public/common/common_export.h"
  192. --- a/third_party/blink/public/common/origin_trials/origin_trial_public_key.h
  193. +++ b/third_party/blink/public/common/origin_trials/origin_trial_public_key.h
  194. @@ -6,6 +6,7 @@
  195. #define THIRD_PARTY_BLINK_PUBLIC_COMMON_ORIGIN_TRIALS_ORIGIN_TRIAL_PUBLIC_KEY_H_
  196. #include <array>
  197. +#include <cstdint>
  198. namespace blink {
  199. --- a/ui/gfx/geometry/linear_gradient.h
  200. +++ b/ui/gfx/geometry/linear_gradient.h
  201. @@ -8,6 +8,8 @@
  202. #include <stdint.h>
  203. #include <array>
  204. +#include <cstddef>
  205. +#include <cstdint>
  206. #include <string>
  207. #include "ui/gfx/geometry/geometry_skia_export.h"