Index: components/tracing/common/trace_startup.h |
diff --git a/components/tracing/common/trace_startup.h b/components/tracing/common/trace_startup.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4a388d8d44f2ccae891abcbaa34de3e5e491f32c |
--- /dev/null |
+++ b/components/tracing/common/trace_startup.h |
@@ -0,0 +1,19 @@ |
+// Copyright 2017 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. |
+ |
+#ifndef COMPONENTS_TRACING_COMMON_TRACE_STARTUP_H |
+#define COMPONENTS_TRACING_COMMON_TRACE_STARTUP_H |
+ |
+#include "components/tracing/tracing_export.h" |
+ |
+namespace tracing { |
+ |
+// Enables TraceLog with config based on the command line flags of the process. |
+// If |can_access_file_system| is false then TraceLog is not enabled in case it |
+// is required to read config file to start tracing. |
+void TRACING_EXPORT EnableStartupTracingIfNeeded(bool can_access_file_system); |
+ |
+} // namespace tracing |
+ |
+#endif // COMPONENTS_TRACING_COMMON_TRACE_STARTUP_H |