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

Unified Diff: services/http_server/http_server_factory_impl.cc

Issue 2012873003: More ApplicationDelegate/ApplicationRunner[Chromium] conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work791_run_app_options
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/http_server/http_server_factory_impl.h ('k') | services/http_server/http_server_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/http_server/http_server_factory_impl.cc
diff --git a/services/http_server/http_server_factory_impl.cc b/services/http_server/http_server_factory_impl.cc
index 60da71420645c866e0c85f26554a26b3f8c6aa79..45b952fe34439447bcfb9c28941c192b378d1c7e 100644
--- a/services/http_server/http_server_factory_impl.cc
+++ b/services/http_server/http_server_factory_impl.cc
@@ -10,9 +10,8 @@
namespace http_server {
-HttpServerFactoryImpl::HttpServerFactoryImpl(mojo::ApplicationImpl* app) {
- app_ = app;
-}
+HttpServerFactoryImpl::HttpServerFactoryImpl(mojo::Shell* shell)
+ : shell_(shell) {}
HttpServerFactoryImpl::~HttpServerFactoryImpl() {
// Free the http servers.
@@ -77,12 +76,12 @@ void HttpServerFactoryImpl::CreateHttpServer(
if (key.second) { // If the port is non-zero.
if (!port_indicated_servers_.count(key)) {
port_indicated_servers_[key] =
- new HttpServerImpl(app_, this, local_address.Pass());
+ new HttpServerImpl(shell_, this, local_address.Pass());
}
port_indicated_servers_[key]->AddBinding(server_request.Pass());
} else {
HttpServerImpl* server =
- new HttpServerImpl(app_, this, local_address.Pass());
+ new HttpServerImpl(shell_, this, local_address.Pass());
server->AddBinding(server_request.Pass());
port_any_servers_.insert(server);
}
« no previous file with comments | « services/http_server/http_server_factory_impl.h ('k') | services/http_server/http_server_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698