summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui_test_utils.cc
diff options
context:
space:
mode:
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();
}