From 822fd270d1ec6a47558bfad9c73a71aec6043161 Mon Sep 17 00:00:00 2001 From: Eric Seidel Date: Tue, 6 Jan 2015 17:38:34 -0800 Subject: [PATCH] Make Sky not crash when run in MojoShell.apk We'll fix both of these issues, but these hacks unblock more important functionality fixes to Sky run on Android. R=abarth@chromium.org Review URL: https://codereview.chromium.org/826063003 --- engine/src/flutter/tools/debugger/prompt/prompt.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/src/flutter/tools/debugger/prompt/prompt.cc b/engine/src/flutter/tools/debugger/prompt/prompt.cc index 6ef357d1d2..fc137b5337 100644 --- a/engine/src/flutter/tools/debugger/prompt/prompt.cc +++ b/engine/src/flutter/tools/debugger/prompt/prompt.cc @@ -56,7 +56,14 @@ class Prompt : public mojo::ApplicationDelegate { connection->ConnectToService(&debugger_); std::cout << "Loading " << url_ << std::endl; Reload(); +#if !defined(OS_ANDROID) + // FIXME: To support device-centric development we need to re-write + // prompt.cc to just be a server and have all the command handling move + // to python (skydb). prompt.cc would just run until told to quit. + // If we don't comment this out then prompt.cc just quits when run headless + // as it immediately recieves EOF which it treats as quit. ScheduleWaitForInput(); +#endif return true; }