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

Side by Side Diff: components/arc/arc_bridge_host_impl.cc

Issue 2747363002: Revert of arc: enable Android tracing from chrome://tracing in dev mode (Closed)
Patch Set: Created 3 years, 9 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 | « components/arc/arc_bridge_host_impl.h ('k') | components/arc/arc_bridge_service.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/arc/arc_bridge_host_impl.h" 5 #include "components/arc/arc_bridge_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 mojom::ProcessInstancePtr process_ptr) { 191 mojom::ProcessInstancePtr process_ptr) {
192 OnInstanceReady(arc_bridge_service_->process(), std::move(process_ptr)); 192 OnInstanceReady(arc_bridge_service_->process(), std::move(process_ptr));
193 } 193 }
194 194
195 void ArcBridgeHostImpl::OnStorageManagerInstanceReady( 195 void ArcBridgeHostImpl::OnStorageManagerInstanceReady(
196 mojom::StorageManagerInstancePtr storage_manager_ptr) { 196 mojom::StorageManagerInstancePtr storage_manager_ptr) {
197 OnInstanceReady(arc_bridge_service_->storage_manager(), 197 OnInstanceReady(arc_bridge_service_->storage_manager(),
198 std::move(storage_manager_ptr)); 198 std::move(storage_manager_ptr));
199 } 199 }
200 200
201 void ArcBridgeHostImpl::OnTracingInstanceReady(
202 mojom::TracingInstancePtr tracing_ptr) {
203 OnInstanceReady(arc_bridge_service_->tracing(), std::move(tracing_ptr));
204 }
205
206 void ArcBridgeHostImpl::OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) { 201 void ArcBridgeHostImpl::OnTtsInstanceReady(mojom::TtsInstancePtr tts_ptr) {
207 OnInstanceReady(arc_bridge_service_->tts(), std::move(tts_ptr)); 202 OnInstanceReady(arc_bridge_service_->tts(), std::move(tts_ptr));
208 } 203 }
209 204
210 void ArcBridgeHostImpl::OnVideoInstanceReady( 205 void ArcBridgeHostImpl::OnVideoInstanceReady(
211 mojom::VideoInstancePtr video_ptr) { 206 mojom::VideoInstancePtr video_ptr) {
212 OnInstanceReady(arc_bridge_service_->video(), std::move(video_ptr)); 207 OnInstanceReady(arc_bridge_service_->video(), std::move(video_ptr));
213 } 208 }
214 209
215 void ArcBridgeHostImpl::OnWallpaperInstanceReady( 210 void ArcBridgeHostImpl::OnWallpaperInstanceReady(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 void ArcBridgeHostImpl::OnChannelClosed(MojoChannel* channel) { 250 void ArcBridgeHostImpl::OnChannelClosed(MojoChannel* channel) {
256 DCHECK(thread_checker_.CalledOnValidThread()); 251 DCHECK(thread_checker_.CalledOnValidThread());
257 mojo_channels_.erase( 252 mojo_channels_.erase(
258 std::find_if(mojo_channels_.begin(), mojo_channels_.end(), 253 std::find_if(mojo_channels_.begin(), mojo_channels_.end(),
259 [channel](std::unique_ptr<MojoChannel>& ptr) { 254 [channel](std::unique_ptr<MojoChannel>& ptr) {
260 return ptr.get() == channel; 255 return ptr.get() == channel;
261 })); 256 }));
262 } 257 }
263 258
264 } // namespace arc 259 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/arc_bridge_host_impl.h ('k') | components/arc/arc_bridge_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698