Index: extensions/browser/extension_function_dispatcher.cc |
diff --git a/extensions/browser/extension_function_dispatcher.cc b/extensions/browser/extension_function_dispatcher.cc |
index 4020d3f692637b63616e9cf54402c2c7c44e43a0..9701f0399d1fa2078326903d56716d9fcbb9d47b 100644 |
--- a/extensions/browser/extension_function_dispatcher.cc |
+++ b/extensions/browser/extension_function_dispatcher.cc |
@@ -382,6 +382,8 @@ void ExtensionFunctionDispatcher::DispatchWithCallbackInternal( |
if (violation_error.empty()) { |
scoped_ptr<base::ListValue> args(params.arguments.DeepCopy()); |
+ // See crbug.com/39178. |
+ ExtensionsBrowserClient::Get()->PermitExternalProtocolHandler(); |
NotifyApiFunctionCalled( |
extension->id(), params.name, args.Pass(), browser_context_); |
UMA_HISTOGRAM_SPARSE_SLOWLY("Extensions.FunctionCalls", |