random-build-fixes.patch 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. diff --git a/chrome/browser/download/bubble/download_bubble_update_service.cc b/chrome/browser/download/bubble/download_bubble_update_service.cc
  2. index 41b647f7b44..8940c6bb7fc 100644
  3. --- a/chrome/browser/download/bubble/download_bubble_update_service.cc
  4. +++ b/chrome/browser/download/bubble/download_bubble_update_service.cc
  5. @@ -91,7 +91,7 @@ ItemSortKey GetSortKey(const Item& item) {
  6. // Helper to get an iterator to the last element in the cache. The cache
  7. // must not be empty.
  8. template <typename Item>
  9. -SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
  10. +typename SortedItems<Item>::const_iterator GetLastIter(const SortedItems<Item>& cache) {
  11. CHECK(!cache.empty());
  12. auto it = cache.end();
  13. return std::prev(it);
  14. @@ -967,9 +967,9 @@ bool DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheImpl(
  15. }
  16. template <typename Id, typename Item>
  17. -SortedItems<Item>::iterator
  18. +typename SortedItems<Item>::iterator
  19. DownloadBubbleUpdateService::CacheManager::RemoveItemFromCacheByIter(
  20. - SortedItems<Item>::iterator iter,
  21. + typename SortedItems<Item>::iterator iter,
  22. SortedItems<Item>& cache,
  23. IterMap<Id, Item>& iter_map) {
  24. CHECK(iter != cache.end());
  25. diff --git a/chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc b/chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc
  26. index 46be6f06b14..f21d445d43a 100644
  27. --- a/chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc
  28. +++ b/chrome/browser/signin/bound_session_credentials/bound_session_refresh_cookie_fetcher_impl.cc
  29. @@ -103,6 +103,6 @@ void BoundSessionRefreshCookieFetcherImpl::OnURLLoaderComplete(
  30. net::Error net_error = static_cast<net::Error>(url_loader_->NetError());
  31. std::move(callback_).Run(
  32. - Result(net_error, headers ? absl::optional<int>(headers->response_code())
  33. - : absl::nullopt));
  34. + Result({net_error, headers ? absl::optional<int>(headers->response_code())
  35. + : absl::nullopt}));
  36. }
  37. diff --git a/chrome/test/chromedriver/capabilities.cc b/chrome/test/chromedriver/capabilities.cc
  38. index c0708681ebd..98b8494d170 100644
  39. --- a/chrome/test/chromedriver/capabilities.cc
  40. +++ b/chrome/test/chromedriver/capabilities.cc
  41. @@ -355,7 +355,7 @@ Status ParseMobileEmulation(const base::Value& option,
  42. "'version' field of type string");
  43. }
  44. - brands.emplace_back(*brand, *version);
  45. + brands.emplace_back(BrandVersion{*brand, *version});
  46. }
  47. client_hints.brands = std::move(brands);
  48. @@ -392,7 +392,7 @@ Status ParseMobileEmulation(const base::Value& option,
  49. "a 'version' field of type string");
  50. }
  51. - full_version_list.emplace_back(*brand, *version);
  52. + full_version_list.emplace_back(BrandVersion{*brand, *version});
  53. }
  54. client_hints.full_version_list = std::move(full_version_list);
  55. diff --git a/components/optimization_guide/core/tflite_model_executor.h b/components/optimization_guide/core/tflite_model_executor.h
  56. index c4f750f4684..b5635f4108b 100644
  57. --- a/components/optimization_guide/core/tflite_model_executor.h
  58. +++ b/components/optimization_guide/core/tflite_model_executor.h
  59. @@ -189,7 +189,7 @@ class TFLiteModelExecutor : public ModelExecutor<OutputType, InputType> {
  60. void SendForBatchExecution(
  61. BatchExecutionCallback callback_on_complete,
  62. base::TimeTicks start_time,
  63. - ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
  64. + typename ModelExecutor<OutputType, InputType>::ConstRefInputVector inputs)
  65. override {
  66. DCHECK(execution_task_runner_->RunsTasksInCurrentSequence());
  67. DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
  68. diff --git a/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc b/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
  69. index 2dc0b304092..a82f255090b 100644
  70. --- a/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
  71. +++ b/third_party/blink/renderer/core/html/parser/html_document_parser_fastpath.cc
  72. @@ -169,7 +169,7 @@ class HTMLFastPathParser {
  73. using Span = base::span<const Char>;
  74. using USpan = base::span<const UChar>;
  75. // 32 matches that used by HTMLToken::Attribute.
  76. - typedef std::conditional<std::is_same_v<Char, UChar>,
  77. + typedef typename std::conditional<std::is_same_v<Char, UChar>,
  78. UCharLiteralBuffer<32>,
  79. LCharLiteralBuffer<32>>::type LiteralBufferType;
  80. typedef UCharLiteralBuffer<32> UCharLiteralBufferType;
  81. diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
  82. index f0b49139147..a308fb67982 100644
  83. --- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
  84. +++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_style.cc
  85. @@ -91,12 +91,12 @@ void CanvasStyle::ApplyToFlags(cc::PaintFlags& flags,
  86. case kGradient:
  87. GetCanvasGradient()->GetGradient()->ApplyToFlags(flags, SkMatrix::I(),
  88. ImageDrawOptions());
  89. - flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
  90. + flags.setColor(SkColor4f{0.0f, 0.0f, 0.0f, global_alpha});
  91. break;
  92. case kImagePattern:
  93. GetCanvasPattern()->GetPattern()->ApplyToFlags(
  94. flags, AffineTransformToSkMatrix(GetCanvasPattern()->GetTransform()));
  95. - flags.setColor(SkColor4f(0.0f, 0.0f, 0.0f, global_alpha));
  96. + flags.setColor(SkColor4f{0.0f, 0.0f, 0.0f, global_alpha});
  97. break;
  98. default:
  99. NOTREACHED();