diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-31 22:38:44 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-31 22:38:44 +0000 |
commit | cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc (patch) | |
tree | af91ba96d5f2170bba3f63fbbe8726dbaf3a2c41 /chrome/browser/renderer_host/render_view_host.cc | |
parent | 9ee73628f9d8ec2998b6060805dac0efd825af44 (diff) | |
download | chromium_src-cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc.zip chromium_src-cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc.tar.gz chromium_src-cbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc.tar.bz2 |
Revert 37674 - Hooking the UI part to the translate feature.
Review URL: http://codereview.chromium.org/549217
TBR=jcampan@chromium.org
Review URL: http://codereview.chromium.org/555195
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_view_host.cc')
-rw-r--r-- | chrome/browser/renderer_host/render_view_host.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc index 820b575..cb0eddf 100644 --- a/chrome/browser/renderer_host/render_view_host.cc +++ b/chrome/browser/renderer_host/render_view_host.cc @@ -825,7 +825,6 @@ void RenderViewHost::OnMessageReceived(const IPC::Message& msg) { OnAccessibilityFocusChange) IPC_MESSAGE_HANDLER(ViewHostMsg_OnCSSInserted, OnCSSInserted) IPC_MESSAGE_HANDLER(ViewHostMsg_PageContents, OnPageContents) - IPC_MESSAGE_HANDLER(ViewHostMsg_PageTranslated, OnPageTranslated) // Have the super handle all other messages. IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg)) IPC_END_MESSAGE_MAP_EX() @@ -1795,14 +1794,3 @@ void RenderViewHost::OnPageContents(const GURL& url, integration_delegate->OnPageContents(url, process()->id(), page_id, contents, language); } - -void RenderViewHost::OnPageTranslated(int32 page_id, - const std::string& original_lang, - const std::string& translated_lang) { - RenderViewHostDelegate::BrowserIntegration* integration_delegate = - delegate_->GetBrowserIntegrationDelegate(); - if (!integration_delegate) - return; - integration_delegate->OnPageTranslated(page_id, - original_lang, translated_lang); -} |