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

Unified Diff: services/asset_bundle/asset_unpacker_impl.cc

Issue 1206673006: Don't use base::WorkerPool in the asset_bundle app. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: move comment 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
« no previous file with comments | « services/asset_bundle/asset_unpacker_impl.h ('k') | services/asset_bundle/asset_unpacker_job.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/asset_bundle/asset_unpacker_impl.cc
diff --git a/services/asset_bundle/asset_unpacker_impl.cc b/services/asset_bundle/asset_unpacker_impl.cc
index bc08bf282b95fbf22452a821e3e61c37edb80533..40086b59a2ab04386f471f1bc0ea1736285b370d 100644
--- a/services/asset_bundle/asset_unpacker_impl.cc
+++ b/services/asset_bundle/asset_unpacker_impl.cc
@@ -10,8 +10,10 @@
namespace mojo {
namespace asset_bundle {
-AssetUnpackerImpl::AssetUnpackerImpl(InterfaceRequest<AssetUnpacker> request)
- : binding_(this, request.Pass()) {
+AssetUnpackerImpl::AssetUnpackerImpl(
+ InterfaceRequest<AssetUnpacker> request,
+ scoped_refptr<base::TaskRunner> worker_runner)
+ : binding_(this, request.Pass()), worker_runner_(worker_runner.Pass()) {
}
AssetUnpackerImpl::~AssetUnpackerImpl() {
@@ -19,7 +21,7 @@ AssetUnpackerImpl::~AssetUnpackerImpl() {
void AssetUnpackerImpl::UnpackZipStream(ScopedDataPipeConsumerHandle zipped,
InterfaceRequest<AssetBundle> request) {
- (new AssetUnpackerJob(request.Pass()))->Unpack(zipped.Pass());
+ (new AssetUnpackerJob(request.Pass(), worker_runner_))->Unpack(zipped.Pass());
}
} // namespace asset_bundle
« no previous file with comments | « services/asset_bundle/asset_unpacker_impl.h ('k') | services/asset_bundle/asset_unpacker_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698