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

Unified Diff: services/nacl/nonsfi/pnacl_compile.cc

Issue 1981513002: ApplicationConnection devolution, part 2.2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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/media/factory_service/factory_service.cc ('k') | services/nacl/nonsfi/pnacl_link.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/nacl/nonsfi/pnacl_compile.cc
diff --git a/services/nacl/nonsfi/pnacl_compile.cc b/services/nacl/nonsfi/pnacl_compile.cc
index 69855118ce5355db33dd003f03cee2b3b8653b7a..5240c1293c8da51c0e0956765e949e05b8e5e183 100644
--- a/services/nacl/nonsfi/pnacl_compile.cc
+++ b/services/nacl/nonsfi/pnacl_compile.cc
@@ -11,7 +11,6 @@
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_runner.h"
-#include "mojo/public/cpp/application/interface_factory.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/nacl/nonsfi/kPnaclTranslatorCompile.h"
#include "services/nacl/nonsfi/pnacl_compile.mojom.h"
@@ -42,22 +41,19 @@ class StrongBindingPexeCompilerImpl : public PexeCompilerImpl {
StrongBinding<PexeCompilerInit> strong_binding_;
};
-class MultiPexeCompiler : public ApplicationDelegate,
- public InterfaceFactory<PexeCompilerInit> {
+class MultiPexeCompiler : public ApplicationDelegate {
public:
MultiPexeCompiler() {}
// From ApplicationDelegate
bool ConfigureIncomingConnection(ApplicationConnection* connection) override {
- connection->AddService<PexeCompilerInit>(this);
+ connection->GetServiceProviderImpl().AddService<PexeCompilerInit>(
+ [](const ConnectionContext& connection_context,
+ InterfaceRequest<PexeCompilerInit> request) {
+ new StrongBindingPexeCompilerImpl(request.Pass());
+ });
return true;
}
-
- // From InterfaceFactory
- void Create(const ConnectionContext& connection_context,
- InterfaceRequest<PexeCompilerInit> request) override {
- new StrongBindingPexeCompilerImpl(request.Pass());
- }
};
} // namespace nacl
« no previous file with comments | « services/media/factory_service/factory_service.cc ('k') | services/nacl/nonsfi/pnacl_link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698