summaryrefslogtreecommitdiffstats
path: root/chrome/test/base/ui_test_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/base/ui_test_utils.cc')
-rw-r--r--chrome/test/base/ui_test_utils.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 4fb7e6e..c664f77 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -281,7 +281,8 @@ void WaitForBrowserActionUpdated(ExtensionAction* browser_action) {
void WaitForLoadStop(TabContents* tab) {
// In many cases, the load may have finished before we get here. Only wait if
// the tab still has a pending navigation.
- if (!tab->IsLoading() && !tab->render_manager()->pending_render_view_host())
+ if (!tab->IsLoading() &&
+ !tab->render_manager_for_testing()->pending_render_view_host())
return;
TestNotificationObserver observer;
RegisterAndWait(&observer, content::NOTIFICATION_LOAD_STOP,