Fixed bug where calling speak immediately after cancel would fail. The problem was that the windows speech API expects a NULL argument when only clearing the queue, otherwise it will try to speak the word given after flushing the queue, even if the word is an empty string.

Bug: 924503
Change-Id: I55629f7868cd23ec7f6318a32c97a7b8d60648be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1495863
Commit-Queue: Samuel Dallstream <sadallst@microsoft.com>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637367}
1 file changed