summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui_test_utils.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 08:45:15 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 08:45:15 +0000
commit7e0831b90c618af96931fcbd0908c4fd05ae0ec5 (patch)
tree6ae2ee1358ecb452ed7c06335ddd643ee47bc109 /chrome/test/ui_test_utils.cc
parent6db4b6c354f638cfe9beb849ca0ad0beb1bb4a8d (diff)
downloadchromium_src-7e0831b90c618af96931fcbd0908c4fd05ae0ec5.zip
chromium_src-7e0831b90c618af96931fcbd0908c4fd05ae0ec5.tar.gz
chromium_src-7e0831b90c618af96931fcbd0908c4fd05ae0ec5.tar.bz2
Relanding the hooking of the translate feature UI.
See http://codereview.chromium.org/549217 Review URL: http://codereview.chromium.org/558065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.cc')
-rw-r--r--chrome/test/ui_test_utils.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc
index 4c04d20..3dc51ec 100644
--- a/chrome/test/ui_test_utils.cc
+++ b/chrome/test/ui_test_utils.cc
@@ -259,10 +259,9 @@ class SimpleNotificationObserver : public NotificationObserver {
class LanguageDetectionNotificationObserver : public NotificationObserver {
public:
- explicit LanguageDetectionNotificationObserver(
- RenderViewHost* render_view_host) {
+ explicit LanguageDetectionNotificationObserver(TabContents* tab) {
registrar_.Add(this, NotificationType::TAB_LANGUAGE_DETERMINED,
- Source<RenderViewHost>(render_view_host));
+ Source<TabContents>(tab));
ui_test_utils::RunMessageLoop();
}
@@ -522,7 +521,7 @@ void WaitForFocusInBrowser(Browser* browser) {
}
std::string WaitForLanguageDetection(TabContents* tab) {
- LanguageDetectionNotificationObserver observer(tab->render_view_host());
+ LanguageDetectionNotificationObserver observer(tab);
return observer.language();
}