summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_controller_unittest.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-15 20:47:53 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-15 20:47:53 +0000
commit673846eb30d851db0a48b663f8a17c2d521c427e (patch)
tree4e42fbc80bde4cb9f954c53d95564f36a948e2aa /chrome/browser/navigation_controller_unittest.cc
parent642e1d10ae9a99fddcb4cbdabcb3d3251de8bc2c (diff)
downloadchromium_src-673846eb30d851db0a48b663f8a17c2d521c427e.zip
chromium_src-673846eb30d851db0a48b663f8a17c2d521c427e.tar.gz
chromium_src-673846eb30d851db0a48b663f8a17c2d521c427e.tar.bz2
Fix a leak in the unit tests.
Review URL: http://codereview.chromium.org/3067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller_unittest.cc')
-rw-r--r--chrome/browser/navigation_controller_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/navigation_controller_unittest.cc b/chrome/browser/navigation_controller_unittest.cc
index 5f9d85e..731958d 100644
--- a/chrome/browser/navigation_controller_unittest.cc
+++ b/chrome/browser/navigation_controller_unittest.cc
@@ -1225,8 +1225,8 @@ TEST_F(NavigationControllerTest, RestoreNavigate) {
std::vector<TabNavigation> navigations;
navigations.push_back(TabNavigation(0, url, L"Title", "state",
PageTransition::LINK));
- NavigationController* controller =
- new NavigationController(profile, navigations, 0, NULL);
+ scoped_ptr<NavigationController> controller(
+ new NavigationController(profile, navigations, 0, NULL));
controller->GoToIndex(0);
// We should now have one entry, and it should be "pending".