summaryrefslogtreecommitdiff
path: root/chromium/extensions/common/manifest_handlers/csp_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/common/manifest_handlers/csp_info.cc')
-rw-r--r--chromium/extensions/common/manifest_handlers/csp_info.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/extensions/common/manifest_handlers/csp_info.cc b/chromium/extensions/common/manifest_handlers/csp_info.cc
index b6c1c158e27..127901228b1 100644
--- a/chromium/extensions/common/manifest_handlers/csp_info.cc
+++ b/chromium/extensions/common/manifest_handlers/csp_info.cc
@@ -358,7 +358,11 @@ base::span<const char* const> CSPHandler::Keys() const {
static constexpr const char* kKeys[] = {
keys::kContentSecurityPolicy, keys::kPlatformAppContentSecurityPolicy,
keys::kSandboxedPagesCSP};
+#if !defined(__GNUC__) || __GNUC__ > 5
return kKeys;
+#else
+ return base::make_span(kKeys, 3);
+#endif
}
} // namespace extensions