Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1103)

Unified Diff: content/browser/speech/speech_recognition_manager_impl.cc

Issue 10091006: TabContents -> WebContentsImpl, part 15. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/speech/speech_recognition_manager_impl.cc
diff --git a/content/browser/speech/speech_recognition_manager_impl.cc b/content/browser/speech/speech_recognition_manager_impl.cc
index 4c650ae5925f70cb9b03df74129db4c63ed1ece0..ddd373a779d23dfc1bb8ef7d9ce53497c9a4cdf6 100644
--- a/content/browser/speech/speech_recognition_manager_impl.cc
+++ b/content/browser/speech/speech_recognition_manager_impl.cc
@@ -152,14 +152,14 @@ void SpeechRecognitionManagerImpl::CheckRenderViewTypeAndStartRecognition(
if (!render_view_host || !render_view_host->GetDelegate())
return;
- // For host delegates other than VIEW_TYPE_TAB_CONTENTS we can't reliably show
+ // For host delegates other than VIEW_TYPE_WEB_CONTENTS we can't reliably show
// a popup, including the speech input bubble. In these cases for privacy
// reasons we don't want to start recording if the user can't be properly
// notified. An example of this is trying to show the speech input bubble
// within an extension popup: http://crbug.com/92083. In these situations the
// speech input extension API should be used instead.
if (render_view_host->GetDelegate()->GetRenderViewType() ==
- content::VIEW_TYPE_TAB_CONTENTS) {
+ content::VIEW_TYPE_WEB_CONTENTS) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
base::Bind(&SpeechRecognitionManagerImpl::ProceedStartingRecognition,
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/web_contents/navigation_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698