summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/web_contents_unittest.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 03:21:51 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 03:21:51 +0000
commit33b2261718852034e1c93b708fc176337d862db5 (patch)
treef5ae5e98e3162a5ad7a6857800134430c9d9c1f9 /chrome/browser/tab_contents/web_contents_unittest.cc
parent81af939f99865071091db5393e87d85fb0f02012 (diff)
downloadchromium_src-33b2261718852034e1c93b708fc176337d862db5.zip
chromium_src-33b2261718852034e1c93b708fc176337d862db5.tar.gz
chromium_src-33b2261718852034e1c93b708fc176337d862db5.tar.bz2
Fix a leak of the NavigationController during many tests. A duplicate
NavigationController was begin created from when we had to create this separately. BUG=10781 Review URL: http://codereview.chromium.org/88018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14084 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/web_contents_unittest.cc')
-rw-r--r--chrome/browser/tab_contents/web_contents_unittest.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc
index 5c91259..1c936c5 100644
--- a/chrome/browser/tab_contents/web_contents_unittest.cc
+++ b/chrome/browser/tab_contents/web_contents_unittest.cc
@@ -896,8 +896,7 @@ TEST_F(WebContentsTest, ShowInterstitialThenCloseTab) {
interstitial->TestDidNavigate(1, url);
// Now close the tab.
- delete contents();
- ContentsCleanedUp();
+ DeleteContents();
EXPECT_TRUE(deleted);
EXPECT_EQ(TestInterstitialPage::CANCELED, state);
}