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

Unified Diff: services/debugger/debugger.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/dart/content_handler_main.cc ('k') | services/files/files_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/debugger/debugger.cc
diff --git a/services/debugger/debugger.cc b/services/debugger/debugger.cc
index 62f222a61836f0e9a4ec0aa7df246a8d2e50f751..c43f144233174d0ddd6abd83585b353f9996123c 100644
--- a/services/debugger/debugger.cc
+++ b/services/debugger/debugger.cc
@@ -13,6 +13,7 @@
#include "mojo/public/c/system/main.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/public/cpp/bindings/binding.h"
#include "mojo/services/http_server/cpp/http_server_util.h"
#include "mojo/services/http_server/interfaces/http_server.mojom.h"
@@ -47,7 +48,8 @@ class Debugger : public mojo::ApplicationDelegate,
}
base::StringToUint(app->args()[1], &command_port_);
http_server::HttpServerFactoryPtr http_server_factory;
- app->ConnectToServiceDeprecated("mojo:http_server", &http_server_factory);
+ mojo::ConnectToService(app->shell(), "mojo:http_server",
+ GetProxy(&http_server_factory));
mojo::NetAddressPtr local_address(mojo::NetAddress::New());
local_address->family = mojo::NetAddressFamily::IPV4;
@@ -120,8 +122,10 @@ class Debugger : public mojo::ApplicationDelegate,
return;
}
- if (!tracing_)
- app_->ConnectToServiceDeprecated("mojo:tracing", &tracing_);
+ if (!tracing_) {
+ mojo::ConnectToService(app_->shell(), "mojo:tracing",
+ GetProxy(&tracing_));
+ }
is_tracing_ = true;
mojo::DataPipe pipe;
tracing_->Start(pipe.producer_handle.Pass(), mojo::String("*"));
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/files/files_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698