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

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

Issue 10825127: Valgrind: Clean up leaks in callers to extension_function_test_utils::RunFunction. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Index: chrome/browser/extensions/extension_management_api_browsertest.cc
===================================================================
--- chrome/browser/extensions/extension_management_api_browsertest.cc (revision 149361)
+++ chrome/browser/extensions/extension_management_api_browsertest.cc (working copy)
@@ -170,8 +170,10 @@
IN_PROC_BROWSER_TEST_F(ExtensionManagementApiEscalationTest,
DisabledReason) {
+ scoped_refptr<GetExtensionByIdFunction> function =
+ new GetExtensionByIdFunction();
scoped_ptr<base::Value> result(util::RunFunctionAndReturnSingleResult(
- new GetExtensionByIdFunction(),
+ function.get(),
base::StringPrintf("[\"%s\"]", kId),
browser()));
ASSERT_TRUE(result.get() != NULL);

Powered by Google App Engine
This is Rietveld 408576698