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

Unified Diff: services/tracing/trace_data_sink.cc

Issue 2208783002: Make Tracing Service not use outgoing InterfaceProvider, update conventions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/tracing/trace_data_sink.h ('k') | services/tracing/trace_recorder_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/trace_data_sink.cc
diff --git a/services/tracing/trace_data_sink.cc b/services/tracing/trace_data_sink.cc
deleted file mode 100644
index b278956648b15949b06e450e304daa325fb76997..0000000000000000000000000000000000000000
--- a/services/tracing/trace_data_sink.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "services/tracing/trace_data_sink.h"
-
-#include <utility>
-
-#include "base/logging.h"
-#include "mojo/common/data_pipe_utils.h"
-
-using mojo::common::BlockingCopyFromString;
-
-namespace tracing {
-
-TraceDataSink::TraceDataSink(mojo::ScopedDataPipeProducerHandle pipe)
- : pipe_(std::move(pipe)), empty_(true) {}
-
-TraceDataSink::~TraceDataSink() {
- if (pipe_.is_valid())
- pipe_.reset();
- DCHECK(!pipe_.is_valid());
-}
-
-void TraceDataSink::AddChunk(const std::string& json) {
- if (!empty_)
- BlockingCopyFromString(",", pipe_);
- empty_ = false;
- BlockingCopyFromString(json, pipe_);
-}
-
-} // namespace tracing
« no previous file with comments | « services/tracing/trace_data_sink.h ('k') | services/tracing/trace_recorder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698