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

Unified Diff: services/http_server/http_server_impl.cc

Issue 1915403002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 8 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_apptest.cc ('k') | services/java_handler/java_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/http_server/http_server_impl.cc
diff --git a/services/http_server/http_server_impl.cc b/services/http_server/http_server_impl.cc
index b43af73dafe163d96743b1146af605bff91448a2..9aa11856831dac7c4e463657c6e201749fc15e3c 100644
--- a/services/http_server/http_server_impl.cc
+++ b/services/http_server/http_server_impl.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/logging.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/services/http_server/cpp/http_server_util.h"
#include "services/http_server/connection.h"
@@ -23,7 +24,8 @@ HttpServerImpl::HttpServerImpl(mojo::ApplicationImpl* app,
requested_local_address_(requested_local_address.Pass()),
assigned_port_(0),
weak_ptr_factory_(this) {
- app->ConnectToServiceDeprecated("mojo:network_service", &network_service_);
+ mojo::ConnectToService(app->shell(), "mojo:network_service",
+ GetProxy(&network_service_));
Start();
}
« no previous file with comments | « services/http_server/http_server_apptest.cc ('k') | services/java_handler/java_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698