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

Side by Side Diff: services/dart/dart_tracing.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 unified diff | Download patch
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/debugger/debugger.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" 10 #include "mojo/public/cpp/application/application_impl.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 recorder_.reset(); 123 recorder_.reset();
124 } 124 }
125 125
126 DartTracingImpl::DartTracingImpl() { 126 DartTracingImpl::DartTracingImpl() {
127 } 127 }
128 128
129 DartTracingImpl::~DartTracingImpl() { 129 DartTracingImpl::~DartTracingImpl() {
130 } 130 }
131 131
132 void DartTracingImpl::Initialize(mojo::ApplicationImpl* app) { 132 void DartTracingImpl::Initialize(mojo::ApplicationImpl* app) {
133 auto connection = app->ConnectToApplication("mojo:tracing"); 133 auto connection = app->ConnectToApplicationDeprecated("mojo:tracing");
134 connection->AddService(this); 134 connection->AddService(this);
135 } 135 }
136 136
137 void DartTracingImpl::Create( 137 void DartTracingImpl::Create(
138 mojo::ApplicationConnection* connection, 138 mojo::ApplicationConnection* connection,
139 mojo::InterfaceRequest<tracing::TraceProvider> request) { 139 mojo::InterfaceRequest<tracing::TraceProvider> request) {
140 provider_impl_.Bind(request.Pass()); 140 provider_impl_.Bind(request.Pass());
141 } 141 }
142 142
143 } // namespace dart 143 } // namespace dart
OLDNEW
« no previous file with comments | « services/dart/content_handler_main.cc ('k') | services/debugger/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698