OLD | NEW |
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 "services/tracing/public/cpp/tracing_impl.h" | 5 #include "services/tracing/public/cpp/tracing_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #ifdef NDEBUG | 60 #ifdef NDEBUG |
61 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 61 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
62 tracing::kEarlyTracing)) { | 62 tracing::kEarlyTracing)) { |
63 provider_impl_.ForceEnableTracing(); | 63 provider_impl_.ForceEnableTracing(); |
64 } | 64 } |
65 #else | 65 #else |
66 provider_impl_.ForceEnableTracing(); | 66 provider_impl_.ForceEnableTracing(); |
67 #endif | 67 #endif |
68 } | 68 } |
69 | 69 |
70 void TracingImpl::Create(shell::Connection* connection, | 70 void TracingImpl::Create(const shell::Identity& remote_identity, |
71 tracing::TraceProviderRequest request) { | 71 tracing::TraceProviderRequest request) { |
72 provider_impl_.Bind(std::move(request)); | 72 provider_impl_.Bind(std::move(request)); |
73 } | 73 } |
74 | 74 |
75 } // namespace mojo | 75 } // namespace mojo |
OLD | NEW |