summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tabs_module.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-31 22:38:44 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-31 22:38:44 +0000
commitcbd94cfe486f3f012e63bd4c2bf338da4f2ff9bc (patch)
treeaf91ba96d5f2170bba3f63fbbe8726dbaf3a2c41 /chrome/browser/extensions/extension_tabs_module.cc
parent9ee73628f9d8ec2998b6060805dac0efd825af44 (diff)
downloadchromium_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/extensions/extension_tabs_module.cc')
-rw-r--r--chrome/browser/extensions/extension_tabs_module.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc
index f85f054..7b9aef0 100644
--- a/chrome/browser/extensions/extension_tabs_module.cc
+++ b/chrome/browser/extensions/extension_tabs_module.cc
@@ -897,7 +897,7 @@ bool DetectTabLanguageFunction::RunImpl() {
// The tab contents does not know its language yet. Let's wait until it
// receives it, or until the tab is closed/navigates to some other page.
registrar_.Add(this, NotificationType::TAB_LANGUAGE_DETERMINED,
- Source<TabContents>(contents));
+ Source<RenderViewHost>(contents->render_view_host()));
registrar_.Add(this, NotificationType::TAB_CLOSING,
Source<NavigationController>(&(contents->controller())));
registrar_.Add(this, NotificationType::NAV_ENTRY_COMMITTED,