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

Unified Diff: apps/benchmark/benchmark_app.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 | « no previous file | examples/audio_play_test/play_tone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/benchmark/benchmark_app.cc
diff --git a/apps/benchmark/benchmark_app.cc b/apps/benchmark/benchmark_app.cc
index 29eb4b39542b59a5630f28afb946451697343943..4ff9fc910e86ebaa17e56b1453a9bfc402053aff 100644
--- a/apps/benchmark/benchmark_app.cc
+++ b/apps/benchmark/benchmark_app.cc
@@ -24,6 +24,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/tracing/interfaces/tracing.mojom.h"
namespace benchmark {
@@ -55,7 +56,8 @@ class BenchmarkApp : public mojo::ApplicationDelegate,
// Connect to trace collector, which will fetch the trace events produced by
// the app being benchmarked.
tracing::TraceCollectorPtr trace_collector;
- app->ConnectToServiceDeprecated("mojo:tracing", &trace_collector);
+ mojo::ConnectToService(app->shell(), "mojo:tracing",
+ GetProxy(&trace_collector));
trace_collector_client_.reset(
new TraceCollectorClient(this, trace_collector.Pass()));
trace_collector_client_->Start(categories_str);
« no previous file with comments | « no previous file | examples/audio_play_test/play_tone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698