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 "content/browser/tracing/background_tracing_manager_impl.h" | 5 #include "content/browser/tracing/background_tracing_manager_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/cpu.h" | 8 #include "base/cpu.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 config_->disable_blink_features()); | 198 config_->disable_blink_features()); |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 EnableRecordingIfConfigNeedsIt(); | 202 EnableRecordingIfConfigNeedsIt(); |
203 | 203 |
204 RecordBackgroundTracingMetric(SCENARIO_ACTIVATED_SUCCESSFULLY); | 204 RecordBackgroundTracingMetric(SCENARIO_ACTIVATED_SUCCESSFULLY); |
205 return true; | 205 return true; |
206 } | 206 } |
207 | 207 |
208 bool BackgroundTracingManagerImpl::HasActiveScenarioForTesting() { | 208 bool BackgroundTracingManagerImpl::HasActiveScenario() { |
209 return config_; | 209 return config_; |
210 } | 210 } |
211 | 211 |
212 bool BackgroundTracingManagerImpl::IsTracingForTesting() { | 212 bool BackgroundTracingManagerImpl::IsTracingForTesting() { |
213 return is_tracing_; | 213 return is_tracing_; |
214 } | 214 } |
215 | 215 |
216 void BackgroundTracingManagerImpl::ValidateStartupScenario() { | 216 void BackgroundTracingManagerImpl::ValidateStartupScenario() { |
217 if (!config_ || !delegate_) | 217 if (!config_ || !delegate_) |
218 return; | 218 return; |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 "disabled-by-default-toplevel.flow," | 592 "disabled-by-default-toplevel.flow," |
593 "disabled-by-default-ipc.flow"; | 593 "disabled-by-default-ipc.flow"; |
594 case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE: | 594 case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE: |
595 return "blink_style"; | 595 return "blink_style"; |
596 } | 596 } |
597 NOTREACHED(); | 597 NOTREACHED(); |
598 return ""; | 598 return ""; |
599 } | 599 } |
600 | 600 |
601 } // namspace content | 601 } // namspace content |
OLD | NEW |