From ed52d1d708c0aa1706c15a9e976665fc0dd23935 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 4 Nov 2021 10:48:01 -0700 Subject: [PATCH] Fix isolate_configuration typo (flutter/engine#29318) --- engine/src/flutter/runtime/dart_isolate.cc | 12 ++++++------ engine/src/flutter/runtime/dart_isolate.h | 4 ++-- engine/src/flutter/runtime/dart_isolate_unittests.cc | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/engine/src/flutter/runtime/dart_isolate.cc b/engine/src/flutter/runtime/dart_isolate.cc index b041b40fcd..b1021f22a2 100644 --- a/engine/src/flutter/runtime/dart_isolate.cc +++ b/engine/src/flutter/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/engine/src/flutter/runtime/dart_isolate.h b/engine/src/flutter/runtime/dart_isolate.h index b5a559215e..44f3969b31 100644 --- a/engine/src/flutter/runtime/dart_isolate.h +++ b/engine/src/flutter/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/engine/src/flutter/runtime/dart_isolate_unittests.cc b/engine/src/flutter/runtime/dart_isolate_unittests.cc index 5656bf327e..8a60979197 100644 --- a/engine/src/flutter/runtime/dart_isolate_unittests.cc +++ b/engine/src/flutter/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);