Commit 031605d4 authored by pkasting@chromium.org's avatar pkasting@chromium.org

Fix leak.

BUG=70576
TEST=none
Review URL: http://codereview.chromium.org/6247020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72414 0039d316-1c4b-4281-b951-d872f2087c98
parent 1934abc2
...@@ -295,12 +295,13 @@ void GoogleURLTrackerTest::CancelGoogleURL() { ...@@ -295,12 +295,13 @@ void GoogleURLTrackerTest::CancelGoogleURL() {
} }
void GoogleURLTrackerTest::InfoBarClosed() { void GoogleURLTrackerTest::InfoBarClosed() {
TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( InfoBarDelegate* infobar = g_browser_process->google_url_tracker()->infobar_;
g_browser_process->google_url_tracker()->infobar_);
ASSERT_TRUE(infobar); ASSERT_TRUE(infobar);
ASSERT_TRUE(infobar->google_url_tracker()); GoogleURLTracker* url_tracker =
infobar->google_url_tracker()->InfoBarClosed(); static_cast<TestInfoBarDelegate*>(infobar)->google_url_tracker();
delete g_browser_process->google_url_tracker()->infobar_; ASSERT_TRUE(url_tracker);
url_tracker->InfoBarClosed();
delete infobar;
} }
void GoogleURLTrackerTest::ExpectDefaultURLs() { void GoogleURLTrackerTest::ExpectDefaultURLs() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment