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

Side by Side Diff: services/dart/dart_tracing.cc

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/gfx/compositor/compositor_app.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "mojo/public/cpp/application/connect.h" 10 #include "mojo/public/cpp/application/connect.h"
12 #include "mojo/public/cpp/bindings/interface_handle.h" 11 #include "mojo/public/cpp/bindings/interface_handle.h"
13 #include "mojo/public/cpp/bindings/interface_request.h" 12 #include "mojo/public/cpp/bindings/interface_request.h"
14 #include "mojo/services/tracing/interfaces/trace_provider_registry.mojom.h" 13 #include "mojo/services/tracing/interfaces/trace_provider_registry.mojom.h"
15 14
16 namespace dart { 15 namespace dart {
17 16
18 void DartTimelineController::Enable(const mojo::String& categories) { 17 void DartTimelineController::Enable(const mojo::String& categories) {
19 if (categories == mojo::String("Dart")) { 18 if (categories == mojo::String("Dart")) {
20 Dart_GlobalTimelineSetRecordedStreams(DART_TIMELINE_STREAM_DART); 19 Dart_GlobalTimelineSetRecordedStreams(DART_TIMELINE_STREAM_DART);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void DartTracingImpl::Initialize(mojo::Shell* shell) { 135 void DartTracingImpl::Initialize(mojo::Shell* shell) {
137 tracing::TraceProviderRegistryPtr registry; 136 tracing::TraceProviderRegistryPtr registry;
138 ConnectToService(shell, "mojo:tracing", GetProxy(&registry)); 137 ConnectToService(shell, "mojo:tracing", GetProxy(&registry));
139 138
140 mojo::InterfaceHandle<tracing::TraceProvider> provider; 139 mojo::InterfaceHandle<tracing::TraceProvider> provider;
141 provider_impl_.Bind(GetProxy(&provider)); 140 provider_impl_.Bind(GetProxy(&provider));
142 registry->RegisterTraceProvider(provider.Pass()); 141 registry->RegisterTraceProvider(provider.Pass());
143 } 142 }
144 143
145 } // namespace dart 144 } // namespace dart
OLDNEW
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/gfx/compositor/compositor_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698