diff --git a/runtime/dart_isolate.cc b/runtime/dart_isolate.cc index b041b40fcd3d1..b1021f22a2cfd 100644 --- a/runtime/dart_isolate.cc +++ b/runtime/dart_isolate.cc @@ -93,7 +93,7 @@ std::weak_ptr DartIsolate::SpawnIsolate( const fml::closure& isolate_shutdown_callback, std::optional dart_entrypoint, std::optional dart_entrypoint_library, - std::unique_ptr isolate_configration) const { + std::unique_ptr isolate_configuration) const { return CreateRunningRootIsolate( settings, // GetIsolateGroupData().GetIsolateSnapshot(), // @@ -104,7 +104,7 @@ std::weak_ptr DartIsolate::SpawnIsolate( isolate_shutdown_callback, // dart_entrypoint, // dart_entrypoint_library, // - std::move(isolate_configration), // + std::move(isolate_configuration), // UIDartState::Context{GetTaskRunners(), // snapshot_delegate, // GetIOManager(), // @@ -128,7 +128,7 @@ std::weak_ptr DartIsolate::CreateRunningRootIsolate( const fml::closure& isolate_shutdown_callback, std::optional dart_entrypoint, std::optional dart_entrypoint_library, - std::unique_ptr isolate_configration, + std::unique_ptr isolate_configuration, const UIDartState::Context& context, const DartIsolate* spawning_isolate) { if (!isolate_snapshot) { @@ -136,13 +136,13 @@ std::weak_ptr DartIsolate::CreateRunningRootIsolate( return {}; } - if (!isolate_configration) { + if (!isolate_configuration) { FML_LOG(ERROR) << "Invalid isolate configuration."; return {}; } isolate_flags.SetNullSafetyEnabled( - isolate_configration->IsNullSafetyEnabled(*isolate_snapshot)); + isolate_configuration->IsNullSafetyEnabled(*isolate_snapshot)); isolate_flags.SetIsDontNeedSafe(isolate_snapshot->IsDontNeedSafe()); auto isolate = CreateRootIsolate(settings, // @@ -173,7 +173,7 @@ std::weak_ptr DartIsolate::CreateRunningRootIsolate( return {}; } - if (!isolate_configration->PrepareIsolate(*isolate.get())) { + if (!isolate_configuration->PrepareIsolate(*isolate.get())) { FML_LOG(ERROR) << "Could not prepare isolate."; return {}; } diff --git a/runtime/dart_isolate.h b/runtime/dart_isolate.h index b5a559215eb75..44f3969b3151b 100644 --- a/runtime/dart_isolate.h +++ b/runtime/dart_isolate.h @@ -215,7 +215,7 @@ class DartIsolate : public UIDartState { const fml::closure& isolate_shutdown_callback, std::optional dart_entrypoint, std::optional dart_entrypoint_library, - std::unique_ptr isolate_configration, + std::unique_ptr isolate_configuration, const UIDartState::Context& context, const DartIsolate* spawning_isolate = nullptr); @@ -245,7 +245,7 @@ class DartIsolate : public UIDartState { const fml::closure& isolate_shutdown_callback, std::optional dart_entrypoint, std::optional dart_entrypoint_library, - std::unique_ptr isolate_configration) const; + std::unique_ptr isolate_configuration) const; // |UIDartState| ~DartIsolate() override; diff --git a/runtime/dart_isolate_unittests.cc b/runtime/dart_isolate_unittests.cc index 5656bf327e7e0..8a60979197fd2 100644 --- a/runtime/dart_isolate_unittests.cc +++ b/runtime/dart_isolate_unittests.cc @@ -123,7 +123,7 @@ TEST_F(DartIsolateTest, SpawnIsolate) { /*isolate_shutdown_callback=*/settings.isolate_shutdown_callback, /*dart_entrypoint=*/"main", /*dart_entrypoint_library=*/std::nullopt, - /*isolate_configration=*/std::move(spawn_configuration)); + /*isolate_configuration=*/std::move(spawn_configuration)); auto spawn = weak_spawn.lock(); ASSERT_TRUE(spawn); ASSERT_EQ(spawn->GetPhase(), DartIsolate::Phase::Running);