From ae8bdd8dfc8c624608a462e222d7701deb05424f Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Tue, 17 Apr 2018 12:07:00 -0700 Subject: [PATCH] In the service protocol, if no view is specified to flush tasks on, pick the first one. (flutter/engine#5028) --- engine/src/flutter/runtime/service_protocol.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/runtime/service_protocol.cc b/engine/src/flutter/runtime/service_protocol.cc index 030901e542..f2960d624d 100644 --- a/engine/src/flutter/runtime/service_protocol.cc +++ b/engine/src/flutter/runtime/service_protocol.cc @@ -189,7 +189,8 @@ bool ServiceProtocol::HandleMessage(fxl::StringView method, // TODO(chinmaygarde): Deprecate these calls in the tools and remove these // fallbacks. if (method == kScreenshotExtensionName || - method == kScreenshotSkpExtensionName) { + method == kScreenshotSkpExtensionName || + method == kFlushUIThreadTasksExtensionName) { return HandleMessageOnHandler(*handlers_.begin(), method, params, response); }