summaryrefslogtreecommitdiff
path: root/chromium/gin/isolate_holder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/gin/isolate_holder.cc')
-rw-r--r--chromium/gin/isolate_holder.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/gin/isolate_holder.cc b/chromium/gin/isolate_holder.cc
index 73435b1c2c0..08815f12ad8 100644
--- a/chromium/gin/isolate_holder.cc
+++ b/chromium/gin/isolate_holder.cc
@@ -62,13 +62,13 @@ IsolateHolder::IsolateHolder(
CHECK(allocator) << "You need to invoke gin::IsolateHolder::Initialize first";
isolate_ = v8::Isolate::Allocate();
- isolate_data_.reset(
- new PerIsolateData(isolate_, allocator, access_mode_, task_runner));
+ isolate_data_ = std::make_unique<PerIsolateData>(isolate_, allocator,
+ access_mode_, task_runner);
if (isolate_creation_mode == IsolateCreationMode::kCreateSnapshot) {
// This branch is called when creating a V8 snapshot for Blink.
// Note SnapshotCreator calls isolate->Enter() in its construction.
- snapshot_creator_.reset(
- new v8::SnapshotCreator(isolate_, g_reference_table));
+ snapshot_creator_ =
+ std::make_unique<v8::SnapshotCreator>(isolate_, g_reference_table);
DCHECK_EQ(isolate_, snapshot_creator_->GetIsolate());
} else {
v8::Isolate::CreateParams params;
@@ -91,8 +91,8 @@ IsolateHolder::IsolateHolder(
// IsolateHolder, but only the first registration will have any effect.
gin::V8SharedMemoryDumpProvider::Register();
- isolate_memory_dump_provider_.reset(
- new V8IsolateMemoryDumpProvider(this, task_runner));
+ isolate_memory_dump_provider_ =
+ std::make_unique<V8IsolateMemoryDumpProvider>(this, task_runner);
}
IsolateHolder::~IsolateHolder() {