In the service protocol, if no view is specified to flush tasks on, pick the first one. (flutter/engine#5028)

This commit is contained in:
Chinmay Garde
2018-04-17 12:07:00 -07:00
committed by GitHub
parent ea2c76bfc8
commit ae8bdd8dfc

View File

@@ -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);
}