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

Unified Diff: chrome/browser/extensions/active_tab_unittest.cc

Issue 2907953002: Fix new/free mismatch in ActiveTabTest.DelegateIsSet (Closed)
Patch Set: Created 3 years, 7 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/extensions/active_tab_unittest.cc
diff --git a/chrome/browser/extensions/active_tab_unittest.cc b/chrome/browser/extensions/active_tab_unittest.cc
index 77b8e472aaa73a9c83e147b41cf361a513263b07..5b732a5d4b30378277d64d6658e51a87ca608bdf 100644
--- a/chrome/browser/extensions/active_tab_unittest.cc
+++ b/chrome/browser/extensions/active_tab_unittest.cc
@@ -490,9 +490,9 @@ TEST_F(ActiveTabTest, DelegateIsSet) {
// Cleanup.
chromeos::WallpaperManager::Shutdown();
- free(ActiveTabPermissionGranter::SetPlatformDelegate(nullptr));
+ delete ActiveTabPermissionGranter::SetPlatformDelegate(nullptr);
}
-#endif
+#endif // defined(OS_CHROMEOS)
} // namespace
} // namespace extensions
« 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