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

Unified Diff: examples/recursive_content_handler/recursive_content_handler.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: examples/recursive_content_handler/recursive_content_handler.cc
diff --git a/examples/recursive_content_handler/recursive_content_handler.cc b/examples/recursive_content_handler/recursive_content_handler.cc
index 62f9357363fd0b22d7e1e8283f33d1fa017da903..77613d7d913402c0cddd08421132161b9369e706 100644
--- a/examples/recursive_content_handler/recursive_content_handler.cc
+++ b/examples/recursive_content_handler/recursive_content_handler.cc
@@ -18,14 +18,14 @@ namespace examples {
class RecursiveContentHandler : public ApplicationDelegate,
public ContentHandlerFactory::ManagedDelegate {
public:
- RecursiveContentHandler() : content_handler_factory_(this) {}
+ RecursiveContentHandler() {}
private:
// Overridden from ApplicationDelegate:
bool ConfigureIncomingConnection(
ServiceProviderImpl* service_provider_impl) override {
service_provider_impl->AddService<ContentHandler>(
- content_handler_factory_.GetInterfaceRequestHandler());
+ ContentHandlerFactory::GetInterfaceRequestHandler(this));
return true;
}
@@ -38,8 +38,6 @@ class RecursiveContentHandler : public ApplicationDelegate,
new RecursiveContentHandler(), application_request.Pass()));
}
- ContentHandlerFactory content_handler_factory_;
-
DISALLOW_COPY_AND_ASSIGN(RecursiveContentHandler);
};
« no previous file with comments | « examples/forwarding_content_handler/forwarding_content_handler.cc ('k') | mojo/application/content_handler_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698