From 859a419a63a860ce1241ad883ab5488f5495c71d Mon Sep 17 00:00:00 2001 From: "brettw@google.com" Date: Mon, 15 Sep 2008 21:57:21 +0000 Subject: Revert my last fix for a memory leak in the navigation controller tests. This causes an assertion in debug mode. I think this needs to be done another way. Review URL: http://codereview.chromium.org/2873 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2239 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/navigation_controller_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/navigation_controller_unittest.cc b/chrome/browser/navigation_controller_unittest.cc index 731958d..5f9d85e 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 navigations; navigations.push_back(TabNavigation(0, url, L"Title", "state", PageTransition::LINK)); - scoped_ptr controller( - new NavigationController(profile, navigations, 0, NULL)); + NavigationController* controller = + new NavigationController(profile, navigations, 0, NULL); controller->GoToIndex(0); // We should now have one entry, and it should be "pending". -- cgit v1.1