diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-15 21:57:21 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-15 21:57:21 +0000 |
commit | 859a419a63a860ce1241ad883ab5488f5495c71d (patch) | |
tree | aa32f65ddef1adc618672023dd96766d89cda0f5 /chrome | |
parent | 673846eb30d851db0a48b663f8a17c2d521c427e (diff) | |
download | chromium_src-859a419a63a860ce1241ad883ab5488f5495c71d.zip chromium_src-859a419a63a860ce1241ad883ab5488f5495c71d.tar.gz chromium_src-859a419a63a860ce1241ad883ab5488f5495c71d.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/navigation_controller_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<TabNavigation> navigations; navigations.push_back(TabNavigation(0, url, L"Title", "state", PageTransition::LINK)); - scoped_ptr<NavigationController> 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". |