diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 22:32:52 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-20 22:32:52 +0000 |
commit | 151a63d06532f2cdd24c6bb37a072abd6d0184a1 (patch) | |
tree | 401eaa79525b60985ec4c5e16169cc3e2a1186e8 /chrome/browser/translate | |
parent | 82eb8ec62c0ad5494a51e3b45c7a15dcd7e4a1e4 (diff) | |
download | chromium_src-151a63d06532f2cdd24c6bb37a072abd6d0184a1.zip chromium_src-151a63d06532f2cdd24c6bb37a072abd6d0184a1.tar.gz chromium_src-151a63d06532f2cdd24c6bb37a072abd6d0184a1.tar.bz2 |
Rename TabContents::render_view_host() to GetRenderViewHost and put it into the WebContents interface.
BUG=98716
Review URL: http://codereview.chromium.org/9007026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/translate')
-rw-r--r-- | chrome/browser/translate/translate_manager.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/chrome/browser/translate/translate_manager.cc b/chrome/browser/translate/translate_manager.cc index b991a1d..abcf065 100644 --- a/chrome/browser/translate/translate_manager.cc +++ b/chrome/browser/translate/translate_manager.cc @@ -294,9 +294,8 @@ void TranslateManager::Observe(int type, base::Bind( &TranslateManager::InitiateTranslationPosted, weak_method_factory_.GetWeakPtr(), - controller->tab_contents()->render_view_host()->process()-> - GetID(), - controller->tab_contents()->render_view_host()->routing_id(), + controller->tab_contents()->GetRenderProcessHost()->GetID(), + controller->tab_contents()->GetRenderViewHost()->routing_id(), helper->language_state().original_language())); break; } @@ -572,7 +571,7 @@ void TranslateManager::TranslatePage(TabContents* tab_contents, // The script is not available yet. Queue that request and query for the // script. Once it is downloaded we'll do the translate. - RenderViewHost* rvh = tab_contents->render_view_host(); + RenderViewHost* rvh = tab_contents->GetRenderViewHost(); PendingRequest request; request.render_process_id = rvh->process()->GetID(); request.render_view_id = rvh->routing_id(); @@ -589,8 +588,8 @@ void TranslateManager::RevertTranslation(TabContents* tab_contents) { NOTREACHED(); return; } - tab_contents->render_view_host()->Send(new ChromeViewMsg_RevertTranslation( - tab_contents->render_view_host()->routing_id(), entry->page_id())); + tab_contents->GetRenderViewHost()->Send(new ChromeViewMsg_RevertTranslation( + tab_contents->GetRenderViewHost()->routing_id(), entry->page_id())); TranslateTabHelper* helper = TabContentsWrapper::GetCurrentWrapperForContents( tab_contents)->translate_tab_helper(); @@ -643,9 +642,9 @@ void TranslateManager::DoTranslatePage(TabContents* tab, wrapper->translate_tab_helper()->language_state().set_translation_pending( true); - tab->render_view_host()->Send(new ChromeViewMsg_TranslatePage( - tab->render_view_host()->routing_id(), entry->page_id(), translate_script, - source_lang, target_lang)); + tab->GetRenderViewHost()->Send(new ChromeViewMsg_TranslatePage( + tab->GetRenderViewHost()->routing_id(), entry->page_id(), + translate_script, source_lang, target_lang)); } void TranslateManager::PageTranslated(TabContents* tab, |