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

Unified Diff: services/tracing/tracing_app.cc

Issue 1979723002: ApplicationConnection devolution, part 3. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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/tracing/tracing_app.h ('k') | services/ui/input_manager/input_manager_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/tracing_app.cc
diff --git a/services/tracing/tracing_app.cc b/services/tracing/tracing_app.cc
index 0413158526617ad8e859ff9fa3248c70b522fd52..c1dead069831607fb8bf6b49d0a335fc29e7e8c3 100644
--- a/services/tracing/tracing_app.cc
+++ b/services/tracing/tracing_app.cc
@@ -16,8 +16,8 @@ TracingApp::TracingApp() : collector_binding_(this), tracing_active_(false) {}
TracingApp::~TracingApp() {}
bool TracingApp::ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) {
- connection->GetServiceProviderImpl().AddService<TraceCollector>(
+ mojo::ServiceProviderImpl* service_provider_impl) {
+ service_provider_impl->AddService<TraceCollector>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<TraceCollector> trace_collector_request) {
if (collector_binding_.is_bound()) {
@@ -27,7 +27,7 @@ bool TracingApp::ConfigureIncomingConnection(
collector_binding_.Bind(trace_collector_request.Pass());
});
- connection->GetServiceProviderImpl().AddService<TraceProviderRegistry>(
+ service_provider_impl->AddService<TraceProviderRegistry>(
[this](const mojo::ConnectionContext& connection_context,
mojo::InterfaceRequest<TraceProviderRegistry>
trace_provider_registry_request) {
« no previous file with comments | « services/tracing/tracing_app.h ('k') | services/ui/input_manager/input_manager_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698