From 31c1b12f9d2276c0214e3ccc3b2b923b6848b05a Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Mon, 20 Mar 2023 15:08:55 -0700 Subject: [PATCH] Call report_failed_launch when VM fails to initialize (#3) This will cause the updater to not recommend that patch again. --- shell/common/shell.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/common/shell.cc b/shell/common/shell.cc index 7b8d44ed742b9..a133e61aa7910 100644 --- a/shell/common/shell.cc +++ b/shell/common/shell.cc @@ -33,7 +33,7 @@ #include "third_party/skia/include/utils/SkBase64.h" #include "third_party/tonic/common/log.h" -#include "third_party/updater/library/include/updater.h" +#include "updater.h" namespace flutter { @@ -147,6 +147,9 @@ std::unique_ptr Shell::Create( } #endif FML_CHECK(vm) << "Must be able to initialize the VM."; + if (!vm) { + shorebird_report_failed_launch(); + } // If the settings did not specify an `isolate_snapshot`, fall back to the // one the VM was launched with.