diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-03-13 03:47:10 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-03-13 03:47:10 -0400 |
commit | 7a5973bca3efcf56408b306a240032a4d658cec8 (patch) | |
tree | db4568167900c790706d16f4dc6a864937fc8e4b /www-client/chromium/files | |
parent | 20b7e208d5821e6b989a232b66505a5f44a82abf (diff) | |
download | ppo-7a5973bca3efcf56408b306a240032a4d658cec8.tar.xz |
it would be good if we actually add the patch.
Diffstat (limited to 'www-client/chromium/files')
-rw-r--r-- | www-client/chromium/files/chromium-101-AccountInfo-noexcept.patch | 49 | ||||
-rw-r--r-- | www-client/chromium/files/chromium-101-WebURLLoaderFactory-incomplete-type.patch | 26 |
2 files changed, 75 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-101-AccountInfo-noexcept.patch b/www-client/chromium/files/chromium-101-AccountInfo-noexcept.patch new file mode 100644 index 0000000..5aff2f8 --- /dev/null +++ b/www-client/chromium/files/chromium-101-AccountInfo-noexcept.patch @@ -0,0 +1,49 @@ +From f5743bfaa6b02bc12d040a59f95bbe3abe7081d9 Mon Sep 17 00:00:00 2001 +From: Stephan Hartmann <stha09@googlemail.com> +Date: Sat, 5 Mar 2022 08:40:55 +0000 +Subject: [PATCH] GCC: fix noexcept in AccountInfo + +Move constructor and move assignment operator for AccountInfo +is marked noexcept. However, move constructor and assignment operator +of member AccountCapabilities are not noexcept. Therefore, GCC fails to +compile AccountInfo. Fix this by adding noexcept to move +constructor and assignment operator of AccountCapabilities. +--- + .../signin/public/identity_manager/account_capabilities.cc | 4 ++++ + .../signin/public/identity_manager/account_capabilities.h | 2 ++ + 2 files changed, 6 insertions(+) + +diff --git a/components/signin/public/identity_manager/account_capabilities.cc b/components/signin/public/identity_manager/account_capabilities.cc +index 1fe703d..9005e94 100644 +--- a/components/signin/public/identity_manager/account_capabilities.cc ++++ b/components/signin/public/identity_manager/account_capabilities.cc +@@ -16,8 +16,12 @@ AccountCapabilities::AccountCapabilities() = default; + AccountCapabilities::~AccountCapabilities() = default; + AccountCapabilities::AccountCapabilities(const AccountCapabilities& other) = + default; ++AccountCapabilities::AccountCapabilities(AccountCapabilities&& other) noexcept = ++ default; + AccountCapabilities& AccountCapabilities::operator=( + const AccountCapabilities& other) = default; ++AccountCapabilities& AccountCapabilities::operator=( ++ AccountCapabilities&& other) noexcept = default; + + // static + const std::vector<std::string>& +diff --git a/components/signin/public/identity_manager/account_capabilities.h b/components/signin/public/identity_manager/account_capabilities.h +index a9f74c4..153ca4d 100644 +--- a/components/signin/public/identity_manager/account_capabilities.h ++++ b/components/signin/public/identity_manager/account_capabilities.h +@@ -23,7 +23,9 @@ class AccountCapabilities { + AccountCapabilities(); + ~AccountCapabilities(); + AccountCapabilities(const AccountCapabilities& other); ++ AccountCapabilities(AccountCapabilities&& other) noexcept; + AccountCapabilities& operator=(const AccountCapabilities& other); ++ AccountCapabilities& operator=(AccountCapabilities&& other) noexcept; + + // Chrome can offer extended promos for turning on Sync to accounts with this + // capability. +-- +2.34.1 + diff --git a/www-client/chromium/files/chromium-101-WebURLLoaderFactory-incomplete-type.patch b/www-client/chromium/files/chromium-101-WebURLLoaderFactory-incomplete-type.patch new file mode 100644 index 0000000..a331868 --- /dev/null +++ b/www-client/chromium/files/chromium-101-WebURLLoaderFactory-incomplete-type.patch @@ -0,0 +1,26 @@ +From a092650bfece8a67cddffc7983dce06146f81ffb Mon Sep 17 00:00:00 2001 +From: Stephan Hartmann <stha09@googlemail.com> +Date: Sun, 6 Mar 2022 11:03:11 +0000 +Subject: [PATCH] libstdc++: fix incomplete type of blink::WebURLLoaderFactory + +std::unique_ptr of libstdc++ uses sizeof() which requires full +definition of blink::WebURLLoaderFactory in blink::EmptyChromeClient. +--- + third_party/blink/renderer/core/loader/empty_clients.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/third_party/blink/renderer/core/loader/empty_clients.h b/third_party/blink/renderer/core/loader/empty_clients.h +index d91e67a..e23de75 100644 +--- a/third_party/blink/renderer/core/loader/empty_clients.h ++++ b/third_party/blink/renderer/core/loader/empty_clients.h +@@ -43,6 +43,7 @@ + #include "third_party/blink/public/mojom/input/focus_type.mojom-blink-forward.h" + #include "third_party/blink/public/platform/web_spell_check_panel_host_client.h" + #include "third_party/blink/public/platform/web_url_loader.h" ++#include "third_party/blink/public/platform/web_url_loader_factory.h" + #include "third_party/blink/renderer/core/core_export.h" + #include "third_party/blink/renderer/core/frame/local_frame_client.h" + #include "third_party/blink/renderer/core/frame/remote_frame_client.h" +-- +2.34.1 + |