Index: chrome/browser/ssl/ssl_browser_tests.cc |
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc |
index 6e95c62380aaaba96e5e056b1216c28a9ef03ff8..28422f9292bd98df5fc05c047a0c269f1bf3bbb2 100644 |
--- a/chrome/browser/ssl/ssl_browser_tests.cc |
+++ b/chrome/browser/ssl/ssl_browser_tests.cc |
@@ -1954,11 +1954,11 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, TestCloseTabWithUnsafePopup) { |
nav_observer.Wait(); |
// Since the popup is showing an interstitial, it shouldn't have a last |
// committed entry. |
+ content::WaitForInterstitialAttach(popup); |
EXPECT_FALSE(popup->GetController().GetLastCommittedEntry()); |
ASSERT_TRUE(popup->GetController().GetVisibleEntry()); |
EXPECT_EQ(https_server_expired_.GetURL("/ssl/bad_iframe.html"), |
popup->GetController().GetVisibleEntry()->GetURL()); |
- content::WaitForInterstitialAttach(popup); |
EXPECT_TRUE(popup->ShowingInterstitialPage()); |
// Add another tab to make sure the browser does not exit when we close |