mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Don't use base::WorkerPool in the asset_bundle app.
WorkerPools can't be shut down, which means that the app's .so can't be unloaded (which is bad for single process mode, and which is probably why the asset bundle tests are flakily crashing on the try bots). So use a SequencedWorkerPool instead (even though we don't care about sequencing). R=eseidel@chromium.org, kulakowski@chromium.org, abarth@chromium.org BUG=Fixes #268 Review URL: https://codereview.chromium.org/1206673006.
This commit is contained in:
parent
693b09745f
commit
5c8b028bd3
@ -4,6 +4,7 @@
|
||||
|
||||
#include "sky/shell/ui/internals.h"
|
||||
|
||||
#include "base/threading/worker_pool.h"
|
||||
#include "mojo/public/cpp/application/connect.h"
|
||||
#include "mojo/public/cpp/bindings/array.h"
|
||||
#include "services/asset_bundle/asset_unpacker_impl.h"
|
||||
@ -107,7 +108,8 @@ Internals::~Internals() {
|
||||
void Internals::Create(
|
||||
mojo::ApplicationConnection* connection,
|
||||
mojo::InterfaceRequest<mojo::asset_bundle::AssetUnpacker> request) {
|
||||
new mojo::asset_bundle::AssetUnpackerImpl(request.Pass());
|
||||
new mojo::asset_bundle::AssetUnpackerImpl(
|
||||
request.Pass(), base::WorkerPool::GetTaskRunner(true));
|
||||
}
|
||||
|
||||
mojo::Handle Internals::TakeServicesProvidedByEmbedder() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user