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

Unified Diff: content/browser/tracing/tracing_controller_impl.h

Issue 2466873002: Enable FILTERING_MODE for tracing if event filters were given in config (Closed)
Patch Set: rebase. Created 3 years, 9 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
Index: content/browser/tracing/tracing_controller_impl.h
diff --git a/content/browser/tracing/tracing_controller_impl.h b/content/browser/tracing/tracing_controller_impl.h
index 0c7b8ea7cae9a31c6ddf76985f089b68bee01eaa..ecff726c43951cb7496a6bc5cbc3e52a6c1d1a09 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -119,12 +119,10 @@ class TracingControllerImpl
TracingControllerImpl();
~TracingControllerImpl() override;
- bool can_start_tracing() const {
- return !is_tracing_;
- }
+ bool can_start_tracing() const { return !enabled_tracing_modes_; }
bool can_stop_tracing() const {
- return is_tracing_ && !trace_data_sink_.get();
+ return enabled_tracing_modes_ && !trace_data_sink_.get();
}
bool can_start_monitoring() const {
@@ -181,7 +179,6 @@ class TracingControllerImpl
void SetEnabledOnFileThread(
const base::trace_event::TraceConfig& trace_config,
- int mode,
const base::Closure& callback);
void SetDisabledOnFileThread(const base::Closure& callback);
void OnAllTracingAgentsStarted();
@@ -228,7 +225,7 @@ class TracingControllerImpl
int pending_clock_sync_ack_count_;
base::OneShotTimer clock_sync_timer_;
- bool is_tracing_;
+ uint8_t enabled_tracing_modes_;
bool is_monitoring_;
GetCategoriesDoneCallback pending_get_categories_done_callback_;

Powered by Google App Engine
This is Rietveld 408576698