summaryrefslogtreecommitdiff
path: root/chromium-125-emplace-struct.patch
blob: e1881700846ae847813bf6a8ee37af902b522e82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
diff --git a/shared_image_backing.h b/shared_image_backing.h.new
index 97ebd0b..fc6179c 100644
--- a/gpu/command_buffer/service/shared_image/shared_image_backing.h
+++ b/gpu/command_buffer/service/shared_image/shared_image_backing.h
@@ -338,7 +338,7 @@ class GPU_GLES2_EXPORT SharedImageBacking {
  private:
   class ScopedWriteUMA {
    public:
-    ScopedWriteUMA() = default;
+    ScopedWriteUMA() : content_consumed_(false) {}
 
     ScopedWriteUMA(const ScopedWriteUMA&) = delete;
     ScopedWriteUMA& operator=(const ScopedWriteUMA&) = delete;
@@ -352,7 +352,7 @@ class GPU_GLES2_EXPORT SharedImageBacking {
     void SetConsumed() { content_consumed_ = true; }
 
    private:
-    bool content_consumed_ = false;
+    bool content_consumed_;
   };
 
   const Mailbox mailbox_;
diff --git a/history_item.h b/history_item.h.new
index 15fea48..ba59305 100644
--- a/third_party/blink/renderer/core/loader/history_item.h
+++ b/third_party/blink/renderer/core/loader/history_item.h
@@ -77,13 +77,13 @@ class CORE_EXPORT HistoryItem final : public GarbageCollected<HistoryItem> {
     DISALLOW_NEW();
 
    public:
-    ViewState() = default;
+    ViewState() : page_scale_factor_(0) {}
     ViewState(const ViewState&) = default;
     ViewState& operator=(const ViewState&) = default;
 
     ScrollOffset visual_viewport_scroll_offset_;
     ScrollOffset scroll_offset_;
-    float page_scale_factor_ = 0;
+    float page_scale_factor_;
     ScrollAnchorData scroll_anchor_data_;
   };
 
diff --git a/third_party/blink/public/common/interest_group/auction_config.h b/third_party/blink/public/common/interest_group/auction_config.h.new
index 5eb6378..4187556 100644
--- a/third_party/blink/public/common/interest_group/auction_config.h
+++ b/third_party/blink/public/common/interest_group/auction_config.h
@@ -243,9 +243,11 @@ struct BLINK_COMMON_EXPORT AuctionConfig {
 
     // Povides whether debug mode is enabled and, if it is, any debug key.
     struct BLINK_COMMON_EXPORT AuctionReportBuyerDebugModeConfig {
-      bool is_enabled = false;
+      bool is_enabled;
       std::optional<uint64_t> debug_key;
 
+      AuctionReportBuyerDebugModeConfig() : is_enabled(false) {}
+
       friend BLINK_COMMON_EXPORT bool operator==(
           const AuctionReportBuyerDebugModeConfig&,
           const AuctionReportBuyerDebugModeConfig&);
@@ -447,7 +449,7 @@ struct BLINK_COMMON_EXPORT AuctionConfig {
   // Origin for the Coordinator to be used for Private Aggregation.
   std::optional<url::Origin> aggregation_coordinator_origin;
 
-  static_assert(__LINE__ == 455, R"(
+  static_assert(__LINE__ == 457, R"(
 If modifying AuctionConfig fields, please make sure to also modify:
 
 * third_party/blink/public/mojom/interest_group/interest_group_types.mojom