Commit 59118d9f authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Replace use of std containers with WTF's equivalents in v8_context_snapshot.cc

This CL replaces the use of std::array of std containers with WTF::Vector
in v8_context_snapshot.cc.

Bug: 952716
Change-Id: I1c66d018251c06f147f7bb0ecc1f6dc724bb43eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1695063Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Cr-Commit-Position: refs/heads/master@{#676175}
parent bb4f2778
......@@ -4,7 +4,6 @@
#include "third_party/blink/renderer/bindings/core/v8/v8_context_snapshot.h"
#include <array>
#include <cstring>
#include "third_party/blink/renderer/bindings/core/v8/generated_code_helper.h"
......@@ -460,8 +459,8 @@ void V8ContextSnapshot::TakeSnapshotForWorld(v8::SnapshotCreator* creator,
// Function templates
v8::HandleScope handleScope(isolate);
std::array<v8::Local<v8::FunctionTemplate>, kSnapshotInterfaceSize>
interface_templates;
Vector<v8::Local<v8::FunctionTemplate>> interface_templates(
kSnapshotInterfaceSize);
v8::Local<v8::FunctionTemplate> window_template;
for (size_t i = 0; i < kSnapshotInterfaceSize; ++i) {
const WrapperTypeInfo* wrapper_type_info =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment