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

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

Issue 1169223002: [Extensions] Clean up the handling of ExtensionHostMsg_Request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 6 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_function_test_utils.cc
diff --git a/chrome/browser/extensions/extension_function_test_utils.cc b/chrome/browser/extensions/extension_function_test_utils.cc
index 9403b1775221bbd85d0762a2ef4b8d7be32de421..9ac1523c99b2d69031a98bc4609d12b576e5a119 100644
--- a/chrome/browser/extensions/extension_function_test_utils.cc
+++ b/chrome/browser/extensions/extension_function_test_utils.cc
@@ -176,8 +176,8 @@ bool RunFunction(UIThreadExtensionFunction* function,
RunFunctionFlags flags) {
TestFunctionDispatcherDelegate dispatcher_delegate(browser);
scoped_ptr<extensions::ExtensionFunctionDispatcher> dispatcher(
- new extensions::ExtensionFunctionDispatcher(browser->profile(),
- &dispatcher_delegate));
+ new extensions::ExtensionFunctionDispatcher(browser->profile()));
+ dispatcher->set_delegate(&dispatcher_delegate);
// TODO(yoz): The cast is a hack; these flags should be defined in
// only one place. See crbug.com/394840.
return extensions::api_test_utils::RunFunction(

Powered by Google App Engine
This is Rietveld 408576698