Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2481)

Unified Diff: chrome/browser/google/google_url_tracker_unittest.cc

Issue 6247020: Fix leak. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google/google_url_tracker_unittest.cc
===================================================================
--- chrome/browser/google/google_url_tracker_unittest.cc (revision 72166)
+++ chrome/browser/google/google_url_tracker_unittest.cc (working copy)
@@ -295,12 +295,13 @@
}
void GoogleURLTrackerTest::InfoBarClosed() {
- TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>(
- g_browser_process->google_url_tracker()->infobar_);
+ InfoBarDelegate* infobar = g_browser_process->google_url_tracker()->infobar_;
ASSERT_TRUE(infobar);
- ASSERT_TRUE(infobar->google_url_tracker());
- infobar->google_url_tracker()->InfoBarClosed();
- delete g_browser_process->google_url_tracker()->infobar_;
+ GoogleURLTracker* url_tracker =
+ static_cast<TestInfoBarDelegate*>(infobar)->google_url_tracker();
+ ASSERT_TRUE(url_tracker);
+ url_tracker->InfoBarClosed();
+ delete infobar;
}
void GoogleURLTrackerTest::ExpectDefaultURLs() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698