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

Side by Side Diff: sky/tools/debugger/trace_collector.cc

Issue 883983004: Rename SkyDebugger to KioskWM and move to /services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename to KioskWM per discussion with jamesr Created 5 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "sky/tools/debugger/prompt/trace_collector.h" 5 #include "sky/tools/debugger/trace_collector.h"
6 6
7 namespace sky { 7 namespace sky {
8 namespace debugger { 8 namespace debugger {
9 9
10 TraceCollector::TraceCollector(mojo::ScopedDataPipeConsumerHandle source) 10 TraceCollector::TraceCollector(mojo::ScopedDataPipeConsumerHandle source)
11 : drainer_(this, source.Pass()), is_complete_(false) { 11 : drainer_(this, source.Pass()), is_complete_(false) {
12 } 12 }
13 13
14 TraceCollector::~TraceCollector() { 14 TraceCollector::~TraceCollector() {
15 } 15 }
(...skipping 19 matching lines...) Expand all
35 if (!callback_.is_null()) 35 if (!callback_.is_null())
36 callback_.Run(GetTraceAsString()); 36 callback_.Run(GetTraceAsString());
37 } 37 }
38 38
39 std::string TraceCollector::GetTraceAsString() { 39 std::string TraceCollector::GetTraceAsString() {
40 return std::string(&trace_.front(), trace_.size()); 40 return std::string(&trace_.front(), trace_.size());
41 } 41 }
42 42
43 } // namespace debugger 43 } // namespace debugger
44 } // namespace sky 44 } // namespace sky
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698