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

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

Issue 1993053002: Simplify ContentHandlerFactory a bit. (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/nacl/nonsfi/content_handler_main_nexe.cc ('k') | services/nacl/sfi/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/nacl/nonsfi/content_handler_main_pexe.cc
diff --git a/services/nacl/nonsfi/content_handler_main_pexe.cc b/services/nacl/nonsfi/content_handler_main_pexe.cc
index f0ecc3bb691a85ba89c9d861381ac67c02aa44c8..e92d3d6ce31a5c44a918bdcf01db99fca2a23c04 100644
--- a/services/nacl/nonsfi/content_handler_main_pexe.cc
+++ b/services/nacl/nonsfi/content_handler_main_pexe.cc
@@ -31,7 +31,7 @@ namespace content_handler {
class PexeContentHandler : public mojo::ApplicationDelegate,
public mojo::ContentHandlerFactory::Delegate {
public:
- PexeContentHandler() : content_handler_factory_(this) {}
+ PexeContentHandler() {}
private:
// Overridden from ApplicationDelegate:
@@ -53,7 +53,7 @@ class PexeContentHandler : public mojo::ApplicationDelegate,
bool ConfigureIncomingConnection(
mojo::ServiceProviderImpl* service_provider_impl) override {
service_provider_impl->AddService<mojo::ContentHandler>(
- content_handler_factory_.GetInterfaceRequestHandler());
+ mojo::ContentHandlerFactory::GetInterfaceRequestHandler(this));
return true;
}
@@ -152,7 +152,6 @@ class PexeContentHandler : public mojo::ApplicationDelegate,
private:
mojo::SynchronousInterfacePtr<mojo::files::Directory> nexe_cache_directory_;
mojo::files::FilesPtr files_;
- mojo::ContentHandlerFactory content_handler_factory_;
mojo::SynchronousInterfacePtr<mojo::nacl::PexeCompilerInit> compiler_init_;
mojo::SynchronousInterfacePtr<mojo::nacl::PexeLinkerInit> linker_init_;
« no previous file with comments | « services/nacl/nonsfi/content_handler_main_nexe.cc ('k') | services/nacl/sfi/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698