aboutsummaryrefslogtreecommitdiff
path: root/www/ungoogled-chromium/files/patch-chrome_test_chromedriver_capabilities.cc
blob: c68af1e2578daeb2626db59d96bca08c8a343532 (plain) (blame)
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
--- chrome/test/chromedriver/capabilities.cc.orig	2023-09-17 07:59:53 UTC
+++ chrome/test/chromedriver/capabilities.cc
@@ -346,7 +346,11 @@ Status ParseMobileEmulation(const base::Value& option,
                         "'version' field of type string");
         }
 
+#if defined(__clang__) && (__clang_major__ >= 15)
         brands.emplace_back(*brand, *version);
+#else
+        brands.emplace_back() = {*brand, *version};
+#endif
       }
 
       client_hints.brands = std::move(brands);
@@ -384,7 +388,11 @@ Status ParseMobileEmulation(const base::Value& option,
                         "a 'version' field of type string");
         }
 
+#if defined(__clang__) && (__clang_major__ >= 15)
         full_version_list.emplace_back(*brand, *version);
+#else
+        full_version_list.emplace_back() = {*brand, *version};
+#endif
       }
 
       client_hints.full_version_list = std::move(full_version_list);