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

Unified Diff: apps/benchmark/benchmark_app.cc

Issue 1916233002: Mark ApplicationImpl::ConnectTo{Application,Service}() as deprecated. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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/apptest/example_apptest.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 3f5c3642dd666697037f432f12d7dac53217ceb3..29eb4b39542b59a5630f28afb946451697343943 100644
--- a/apps/benchmark/benchmark_app.cc
+++ b/apps/benchmark/benchmark_app.cc
@@ -55,7 +55,7 @@ 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->ConnectToService("mojo:tracing", &trace_collector);
+ app->ConnectToServiceDeprecated("mojo:tracing", &trace_collector);
trace_collector_client_.reset(
new TraceCollectorClient(this, trace_collector.Pass()));
trace_collector_client_->Start(categories_str);
@@ -85,7 +85,7 @@ class BenchmarkApp : public mojo::ApplicationDelegate,
// Record the time origin for measurements just before connecting to the app
// being benchmarked.
time_origin_ = base::TimeTicks::FromInternalValue(MojoGetTimeTicksNow());
- traced_app_connection_ = app->ConnectToApplication(args_.app);
+ traced_app_connection_ = app->ConnectToApplicationDeprecated(args_.app);
// Post task to stop tracing when the time is up.
base::MessageLoop::current()->PostDelayedTask(
« no previous file with comments | « no previous file | examples/apptest/example_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698