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

Unified Diff: services/nacl/sfi/content_handler_main.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/nacl/nonsfi/content_handler_main_pexe.cc ('k') | services/native_support/process_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/nacl/sfi/content_handler_main.cc
diff --git a/services/nacl/sfi/content_handler_main.cc b/services/nacl/sfi/content_handler_main.cc
index a7c9ee8c4f014a0793923b0857c964ca00a0a5b3..a5ebec6d9cea11973f2b3b29fc006f3cfd96314f 100644
--- a/services/nacl/sfi/content_handler_main.cc
+++ b/services/nacl/sfi/content_handler_main.cc
@@ -15,6 +15,7 @@
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/services/network/interfaces/network_service.mojom.h"
#include "mojo/services/network/interfaces/url_loader.mojom.h"
#include "native_client/src/public/nacl_desc.h"
@@ -81,7 +82,8 @@ class NaClContentHandler : public mojo::ApplicationDelegate,
url_ = GURL(app->url());
mojo::NetworkServicePtr network_service;
- app->ConnectToServiceDeprecated("mojo:network_service", &network_service);
+ mojo::ConnectToService(app->shell(), "mojo:network_service",
+ GetProxy(&network_service));
network_service->CreateURLLoader(GetProxy(&url_loader_));
}
« no previous file with comments | « services/nacl/nonsfi/content_handler_main_pexe.cc ('k') | services/native_support/process_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698