Commit dbcd3d6b authored by amistry's avatar amistry Committed by Commit bot

Remove code whitelisting chrome://app-list/ for speech recognition.

BUG=439143

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

Cr-Commit-Position: refs/heads/master@{#321481}
parent 2dc9e6c8
......@@ -416,17 +416,8 @@ void ChromeSpeechRecognitionManagerDelegate::CheckRenderViewType(
return;
}
WebContents* web_contents = WebContents::FromRenderViewHost(render_view_host);
// chrome://app-list/ uses speech recognition.
if (web_contents->GetCommittedWebUI() &&
web_contents->GetLastCommittedURL().spec() ==
chrome::kChromeUIAppListStartPageURL) {
allowed = true;
check_permission = false;
}
#if defined(ENABLE_EXTENSIONS)
WebContents* web_contents = WebContents::FromRenderViewHost(render_view_host);
extensions::ViewType view_type = extensions::GetViewType(web_contents);
if (view_type == extensions::VIEW_TYPE_TAB_CONTENTS ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment