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

Unified Diff: examples/forwarding_content_handler/forwarding_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
« no previous file with comments | « no previous file | examples/recursive_content_handler/recursive_content_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/forwarding_content_handler/forwarding_content_handler.cc
diff --git a/examples/forwarding_content_handler/forwarding_content_handler.cc b/examples/forwarding_content_handler/forwarding_content_handler.cc
index 91e9d3516c62891b36bec8cd4d7c231908a637f3..cfc284a02ab05ebf4d6bc1a0db15e187a19704cd 100644
--- a/examples/forwarding_content_handler/forwarding_content_handler.cc
+++ b/examples/forwarding_content_handler/forwarding_content_handler.cc
@@ -54,14 +54,14 @@ class ForwardingApplicationImpl : public Application {
class ForwardingContentHandler : public ApplicationDelegate,
public ContentHandlerFactory::ManagedDelegate {
public:
- ForwardingContentHandler() : content_handler_factory_(this) {}
+ ForwardingContentHandler() {}
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;
}
@@ -80,8 +80,6 @@ class ForwardingContentHandler : public ApplicationDelegate,
new ForwardingApplicationImpl(application_request.Pass(), target_url));
}
- ContentHandlerFactory content_handler_factory_;
-
DISALLOW_COPY_AND_ASSIGN(ForwardingContentHandler);
};
« no previous file with comments | « no previous file | examples/recursive_content_handler/recursive_content_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698