Index: extensions/browser/api_test_utils.cc |
diff --git a/extensions/browser/api_test_utils.cc b/extensions/browser/api_test_utils.cc |
index dd04bb7948cc6a9007fdcf473fa5abb09b86c14f..b96f4a6c5a95d1c2c73b1a6fe4c39dbd62c5a6cf 100644 |
--- a/extensions/browser/api_test_utils.cc |
+++ b/extensions/browser/api_test_utils.cc |
@@ -155,6 +155,15 @@ std::string RunFunctionAndReturnError(UIThreadExtensionFunction* function, |
bool RunFunction(UIThreadExtensionFunction* function, |
const std::string& args, |
+ content::BrowserContext* context) { |
+ TestFunctionDispatcherDelegate delegate; |
+ scoped_ptr<ExtensionFunctionDispatcher> dispatcher( |
+ new ExtensionFunctionDispatcher(context, &delegate)); |
+ return RunFunction(function, args, context, dispatcher.Pass(), NONE); |
+} |
+ |
+bool RunFunction(UIThreadExtensionFunction* function, |
+ const std::string& args, |
content::BrowserContext* context, |
scoped_ptr<extensions::ExtensionFunctionDispatcher> dispatcher, |
RunFunctionFlags flags) { |