Index: chrome/test/plugin/pdf_browsertest.cc |
diff --git a/chrome/test/plugin/pdf_browsertest.cc b/chrome/test/plugin/pdf_browsertest.cc |
index 99b807d8844a4647155c06dc6e3fd31d7f188588..b2c617a8142e863351a7b471b56e57db6c335d2e 100644 |
--- a/chrome/test/plugin/pdf_browsertest.cc |
+++ b/chrome/test/plugin/pdf_browsertest.cc |
@@ -302,7 +302,7 @@ IN_PROC_BROWSER_TEST_F(PDFBrowserTest, FLAKY_SLOW_Loading) { |
// nested message loop for the JS call. |
if (last_count != load_stop_notification_count()) |
continue; |
- ui_test_utils::WaitForLoadStop(controller); |
+ ui_test_utils::WaitForLoadStop(browser()->GetSelectedTabContents()); |
} |
} |
} |