summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl')
-rw-r--r--chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl b/chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl
index 9d0a3104de7..acd9e0f500f 100644
--- a/chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl
+++ b/chromium/third_party/blink/renderer/build/scripts/templates/make_names.cc.tmpl
@@ -5,6 +5,7 @@
#include "{{this_include_path}}"
+#include "base/stl_util.h" // for base::size()
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
namespace blink {
@@ -33,7 +34,7 @@ void Init{{suffix}}() {
{% endfor %}
};
- for (size_t i = 0; i < arraysize(kNames); ++i) {
+ for (size_t i = 0; i < base::size(kNames); ++i) {
StringImpl* impl = StringImpl::CreateStatic(kNames[i].name, kNames[i].length, kNames[i].hash);
void* address = reinterpret_cast<AtomicString*>(&{{suffix|lower}}names_storage) + i;
new (address) AtomicString(impl);