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

Unified Diff: services/nacl/sfi/content_handler_main.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
Index: services/nacl/sfi/content_handler_main.cc
diff --git a/services/nacl/sfi/content_handler_main.cc b/services/nacl/sfi/content_handler_main.cc
index 3e0a51b54141be01c4b12e8199b3fea919263006..3894e3a1e285940596a7cbc99d4ff7657c924cb4 100644
--- a/services/nacl/sfi/content_handler_main.cc
+++ b/services/nacl/sfi/content_handler_main.cc
@@ -74,7 +74,7 @@ NaClDesc* FileStreamToNaClDesc(FILE* file_stream) {
class NaClContentHandler : public mojo::ApplicationDelegate,
public mojo::ContentHandlerFactory::Delegate {
public:
- NaClContentHandler() : content_handler_factory_(this) {}
+ NaClContentHandler() {}
private:
// Overridden from ApplicationDelegate:
@@ -106,7 +106,7 @@ class NaClContentHandler : 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;
}
@@ -139,7 +139,6 @@ class NaClContentHandler : public mojo::ApplicationDelegate,
NOTREACHED();
}
- mojo::ContentHandlerFactory content_handler_factory_;
GURL url_;
base::ScopedFILE irt_fp_;
« no previous file with comments | « services/nacl/nonsfi/content_handler_main_pexe.cc ('k') | services/python/content_handler/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698