| OLD | NEW |
| 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/tracing/tracing_app.h" | 5 #include "services/tracing/tracing_app.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 if (satisfied & MOJO_HANDLE_SIGNAL_PEER_CLOSED) | 103 if (satisfied & MOJO_HANDLE_SIGNAL_PEER_CLOSED) |
| 104 collector_impls_.erase(collector_impls_.begin() + index); | 104 collector_impls_.erase(collector_impls_.begin() + index); |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 } | 107 } |
| 108 AllDataCollected(); | 108 AllDataCollected(); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void TracingApp::AllDataCollected() { | 111 void TracingApp::AllDataCollected() { |
| 112 collector_impls_.clear(); | 112 collector_impls_.clear(); |
| 113 sink_->Flush(); | 113 sink_.reset(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace tracing | 116 } // namespace tracing |
| OLD | NEW |