From df38c95ae1ae5677cc9ed6f98872c45210109b5d Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 27 Oct 2015 06:45:13 -0700 Subject: Separate RenderViewHost from RenderWidgetHost, part 4: delegate This makes a delegate interface between the RenderViewHost and the RenderWidgetHost, which will eventually be used for their communication. This also allows the removal of the horrible terrible no-good RenderWidgetHost::IsRenderView(). BUG=542477 TEST=all green Review URL: https://codereview.chromium.org/1411203010 Cr-Commit-Position: refs/heads/master@{#356286} --- extensions/shell/browser/shell_speech_recognition_manager_delegate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/shell') diff --git a/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc b/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc index 9fc2f65..c4ce068c 100644 --- a/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc +++ b/extensions/shell/browser/shell_speech_recognition_manager_delegate.cc @@ -105,7 +105,7 @@ void ShellSpeechRecognitionManagerDelegate::CheckRenderViewType( int render_process_id, int render_view_id) { DCHECK_CURRENTLY_ON(BrowserThread::UI); - const content::RenderViewHost* render_view_host = + content::RenderViewHost* render_view_host = content::RenderViewHost::FromID(render_process_id, render_view_id); bool allowed = false; bool check_permission = false; -- cgit v1.1