diff options
Diffstat (limited to 'chrome/browser/safe_browsing')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc index 771d4be..a7f8307 100644 --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc @@ -111,7 +111,7 @@ class SafeBrowsingBlockingPageTest : public RenderViewHostTestHarness, // showing. SafeBrowsingBlockingPage* GetSafeBrowsingBlockingPage() { InterstitialPage* interstitial = - InterstitialPage::GetInterstitialPage(contents_); + InterstitialPage::GetInterstitialPage(contents()); if (!interstitial) return NULL; return static_cast<SafeBrowsingBlockingPage*>(interstitial); @@ -186,11 +186,11 @@ TEST_F(SafeBrowsingBlockingPageTest, MalwarePageProceed) { ProceedThroughInterstitial(sb_interstitial); // The interstitial is shown until the navigation commits. - ASSERT_TRUE(InterstitialPage::GetInterstitialPage(contents_)); + ASSERT_TRUE(InterstitialPage::GetInterstitialPage(contents())); // Commit the navigation. Navigate(kBadURL, 1); // The interstitial should be gone now. - ASSERT_FALSE(InterstitialPage::GetInterstitialPage(contents_)); + ASSERT_FALSE(InterstitialPage::GetInterstitialPage(contents())); } // Tests showing a blocking page for a page that contains malware subresources |