Stop the hotword detector instead of shutting it down completely when a session is...
commit658bee605fd975be79eb3f008de5d420aadbed55
authoramistry <amistry@chromium.org>
Wed, 12 Nov 2014 20:13:14 +0000 (12 12:13 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 12 Nov 2014 20:14:07 +0000 (12 20:14 +0000)
tree89e654e09a311f16f869a3e85131c68da564dfcd
parent1d679eaf4f2f0421781be4896ac7d3a356ec93bf
Stop the hotword detector instead of shutting it down completely when a session is no longer active.

Constantly creating and destroying the NaCl plugin when opening/closing
the NTP/google.com/launcher is inefficient use of CPU.

After ~30 seconds of being idle, the hotword extension event page will
get shut down taking the detector with it.

BUG=397019

Review URL: https://codereview.chromium.org/721443003

Cr-Commit-Position: refs/heads/master@{#303884}
chrome/browser/resources/hotword/state_manager.js