Fix a browser crash on opening 'chrome://voicesearch' in guest mode.
commitac54bf90d66dcc561e28106428f9b6a8cfa4eb64
authorsudarsana.nagineni <sudarsana.nagineni@intel.com>
Wed, 10 Sep 2014 09:31:42 +0000 (10 02:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Sep 2014 10:54:36 +0000 (10 10:54 +0000)
tree2d42d129cb6fc9c7c89049a586b04880f890cd6c
parent08a76ea64572fccb87596ae31352861b5e2e71a1
Fix a browser crash on opening 'chrome://voicesearch' in guest mode.

Navigating directly to chrome://voicesearch in guest mode is causing
a crash, since the HotwordService is NULL in the guest mode. This
patch adds a NULL check on HotwordService to fix the crash.

BUG=411784
TEST=With --new-profile-management enabled, try to open chrome://voicesearch
in guest mode.

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

Cr-Commit-Position: refs/heads/master@{#294149}
chrome/browser/ui/webui/voicesearch_ui.cc