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

Unified Diff: services/nacl/nonsfi/content_handler_main_pexe.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/media/factory_service/network_reader_impl.cc ('k') | services/nacl/sfi/content_handler_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/nacl/nonsfi/content_handler_main_pexe.cc
diff --git a/services/nacl/nonsfi/content_handler_main_pexe.cc b/services/nacl/nonsfi/content_handler_main_pexe.cc
index 78b3d906556c1b0044a674c1ea8b7ed86d361758..33d94673f20aa3813f74b1191ca629414f70695c 100644
--- a/services/nacl/nonsfi/content_handler_main_pexe.cc
+++ b/services/nacl/nonsfi/content_handler_main_pexe.cc
@@ -16,6 +16,7 @@
#include "mojo/nacl/nonsfi/nexe_launcher_nonsfi.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/services/files/interfaces/files.mojom.h"
#include "services/nacl/nonsfi/pnacl_compile.mojom.h"
@@ -78,9 +79,11 @@ class PexeContentHandler : public mojo::ApplicationDelegate,
private:
// Overridden from ApplicationDelegate:
void Initialize(mojo::ApplicationImpl* app) override {
- app->ConnectToServiceDeprecated("mojo:pnacl_compile", &compiler_init_);
- app->ConnectToServiceDeprecated("mojo:pnacl_link", &linker_init_);
- app->ConnectToServiceDeprecated("mojo:files", &files_);
+ mojo::ConnectToService(app->shell(), "mojo:pnacl_compile",
+ GetProxy(&compiler_init_));
+ mojo::ConnectToService(app->shell(), "mojo:pnacl_link",
+ GetProxy(&linker_init_));
+ mojo::ConnectToService(app->shell(), "mojo:files", GetProxy(&files_));
mojo::files::Error error = mojo::files::Error::INTERNAL;
files_->OpenFileSystem("app_persistent_cache",
GetProxy(&nexe_cache_directory),
« no previous file with comments | « services/media/factory_service/network_reader_impl.cc ('k') | services/nacl/sfi/content_handler_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698