summaryrefslogtreecommitdiff
path: root/chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc')
-rw-r--r--chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc b/chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc
index fe86cf1998f..d6ae4b6db21 100644
--- a/chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc
+++ b/chromium/extensions/common/manifest_handlers/nacl_modules_handler.cc
@@ -89,7 +89,11 @@ bool NaClModulesHandler::Parse(Extension* extension, base::string16* error) {
base::span<const char* const> NaClModulesHandler::Keys() const {
static constexpr const char* kKeys[] = {keys::kNaClModules};
+#if !defined(__GNUC__) || __GNUC__ > 5
return kKeys;
+#else
+ return base::make_span(kKeys, 1);
+#endif
}
} // namespace extensions