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

Unified Diff: services/js/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
« no previous file with comments | « services/java_handler/java_handler.cc ('k') | services/nacl/nonsfi/content_handler_main_nexe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/js/content_handler_main.cc
diff --git a/services/js/content_handler_main.cc b/services/js/content_handler_main.cc
index 5f305612fbec473ad106cf29a618f7634df80e56..9ed4f8479b0974d18c0d055b21ad8143e6016733 100644
--- a/services/js/content_handler_main.cc
+++ b/services/js/content_handler_main.cc
@@ -17,7 +17,7 @@ namespace js {
class JsContentHandler : public mojo::ApplicationDelegate,
public mojo::ContentHandlerFactory::ManagedDelegate {
public:
- JsContentHandler() : content_handler_factory_(this) {}
+ JsContentHandler() {}
private:
// Overridden from mojo::ApplicationDelegate:
@@ -33,7 +33,7 @@ class JsContentHandler : 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;
}
@@ -46,8 +46,6 @@ class JsContentHandler : public mojo::ApplicationDelegate,
new JSApp(application_request.Pass(), response.Pass()));
}
- mojo::ContentHandlerFactory content_handler_factory_;
-
DISALLOW_COPY_AND_ASSIGN(JsContentHandler);
};
« no previous file with comments | « services/java_handler/java_handler.cc ('k') | services/nacl/nonsfi/content_handler_main_nexe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698