OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "services/dart/dart_tracing.h" | 5 #include "services/dart/dart_tracing.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "dart/runtime/include/dart_tools_api.h" | 9 #include "dart/runtime/include/dart_tools_api.h" |
10 #include "mojo/public/cpp/application/application_impl.h" | 10 #include "mojo/public/cpp/application/application_impl.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 126 } |
127 recorder_.reset(); | 127 recorder_.reset(); |
128 } | 128 } |
129 | 129 |
130 DartTracingImpl::DartTracingImpl() { | 130 DartTracingImpl::DartTracingImpl() { |
131 } | 131 } |
132 | 132 |
133 DartTracingImpl::~DartTracingImpl() { | 133 DartTracingImpl::~DartTracingImpl() { |
134 } | 134 } |
135 | 135 |
136 void DartTracingImpl::Initialize(mojo::ApplicationImpl* app) { | 136 void DartTracingImpl::Initialize(mojo::Shell* shell) { |
137 tracing::TraceProviderRegistryPtr registry; | 137 tracing::TraceProviderRegistryPtr registry; |
138 ConnectToService(app->shell(), "mojo:tracing", GetProxy(®istry)); | 138 ConnectToService(shell, "mojo:tracing", GetProxy(®istry)); |
139 | 139 |
140 mojo::InterfaceHandle<tracing::TraceProvider> provider; | 140 mojo::InterfaceHandle<tracing::TraceProvider> provider; |
141 provider_impl_.Bind(GetProxy(&provider)); | 141 provider_impl_.Bind(GetProxy(&provider)); |
142 registry->RegisterTraceProvider(provider.Pass()); | 142 registry->RegisterTraceProvider(provider.Pass()); |
143 } | 143 } |
144 | 144 |
145 } // namespace dart | 145 } // namespace dart |
OLD | NEW |