提交 a4f6e050 编写于 作者: A Adam Barth

Merge pull request #2057 from abarth/hold_service_provider

Hold services_provided_to_embedder open
......@@ -102,10 +102,7 @@ Internals::Internals(ServicesDataPtr services,
}
service_provider_impl_.AddService<mojo::asset_bundle::AssetUnpacker>(this);
// Currently we don't consume any services provided by the application.
// So there's no need to hold the proxy to the application's ServiceProvider.
mojo::ServiceProviderPtr application_service_provider;
services_provided_to_embedder_ = GetProxy(&application_service_provider);
services_provided_to_embedder_ = GetProxy(&services_provided_to_embedder);
}
Internals::~Internals() {
......
......@@ -50,6 +50,10 @@ class Internals
mojo::ServiceProviderPtr service_provider_;
mojo::ServiceProviderImpl service_provider_impl_;
// We need to hold this object to work around
// https://github.com/domokit/mojo/issues/536
mojo::ServiceProviderPtr services_provided_to_embedder;
// A ServiceProvider supplied by the application that exposes services to
// the embedder.
mojo::InterfaceRequest<mojo::ServiceProvider>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册