diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-31 22:31:04 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-31 22:31:04 +0000 |
commit | 9ee73628f9d8ec2998b6060805dac0efd825af44 (patch) | |
tree | 39b1016beca729c2295d8cc937bfd654040f83de /chrome/test/ui_test_utils.cc | |
parent | 30f9ac3cd37f6a4833be4ce0aefa969dea9a1808 (diff) | |
download | chromium_src-9ee73628f9d8ec2998b6060805dac0efd825af44.zip chromium_src-9ee73628f9d8ec2998b6060805dac0efd825af44.tar.gz chromium_src-9ee73628f9d8ec2998b6060805dac0efd825af44.tar.bz2 |
Hooking the UI part to the translate feature.
Review URL: http://codereview.chromium.org/549217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37674 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.cc')
-rw-r--r-- | chrome/test/ui_test_utils.cc | 7 |
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(); } |