From 1e96882c561f34f57e3001da7f157fd5def2082c Mon Sep 17 00:00:00 2001 From: "milanb@chromium.org" Date: Mon, 17 Jun 2013 11:18:43 +0000 Subject: Remove speech recognition manager from iOS. Speech recognition on iOS is moving to a new architecture. BUG=None Review URL: https://chromiumcodereview.appspot.com/16871007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206702 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/speech/speech_recognition_manager_impl.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'content/browser/speech') diff --git a/content/browser/speech/speech_recognition_manager_impl.cc b/content/browser/speech/speech_recognition_manager_impl.cc index ba7e8dc..dffd6f3 100644 --- a/content/browser/speech/speech_recognition_manager_impl.cc +++ b/content/browser/speech/speech_recognition_manager_impl.cc @@ -179,11 +179,6 @@ void SpeechRecognitionManagerImpl::RecognitionAllowedCallback(int session_id, if (!SessionExists(session_id)) return; -#if defined(OS_IOS) - // On iOS, voice search can only be initiated by clear user action and thus - // it is always allowed. - DCHECK(!ask_user && is_allowed); -#else if (ask_user) { SessionsTable::iterator iter = sessions_.find(session_id); DCHECK(iter != sessions_.end()); @@ -199,7 +194,6 @@ void SpeechRecognitionManagerImpl::RecognitionAllowedCallback(int session_id, weak_factory_.GetWeakPtr(), session_id)); return; } -#endif // defined(OS_IOS) if (is_allowed) { base::MessageLoop::current()->PostTask( -- cgit v1.1