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

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

Issue 2247033005: Background tracing: Added config option for repeated trigger behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/background_tracing_rule.h
diff --git a/content/browser/tracing/background_tracing_rule.h b/content/browser/tracing/background_tracing_rule.h
index a0b4a82a3b224bc1e1c5eadfaf9a6c07d3d965b6..513480c0e42c12b8a913035a07ca23d7421a2536 100644
--- a/content/browser/tracing/background_tracing_rule.h
+++ b/content/browser/tracing/background_tracing_rule.h
@@ -42,6 +42,10 @@ class CONTENT_EXPORT BackgroundTracingRule {
// Probability that we should allow a tigger to happen.
double trigger_chance() const { return trigger_chance_; }
+ bool stop_tracing_on_repeated_reactive() const {
+ return stop_tracing_on_repeated_reactive_;
+ }
+
static std::unique_ptr<BackgroundTracingRule> CreateRuleFromDict(
const base::DictionaryValue* dict);
@@ -50,6 +54,7 @@ class CONTENT_EXPORT BackgroundTracingRule {
double trigger_chance_;
int trigger_delay_;
+ bool stop_tracing_on_repeated_reactive_;
BackgroundTracingConfigImpl::CategoryPreset category_preset_;
};

Powered by Google App Engine
This is Rietveld 408576698