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

Unified Diff: components/domain_reliability/config.h

Issue 1497803004: Domain Reliability: Add sample_rate field to Beacon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more sample rate tests Created 5 years 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
« no previous file with comments | « components/domain_reliability/beacon.cc ('k') | components/domain_reliability/config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/config.h
diff --git a/components/domain_reliability/config.h b/components/domain_reliability/config.h
index 7d5e68719b1fd3724f6aea67411f19b3f8f0d643..95a44953beda4717f7315c3a83b710e6d0945faa 100644
--- a/components/domain_reliability/config.h
+++ b/components/domain_reliability/config.h
@@ -32,7 +32,7 @@ struct DOMAIN_RELIABILITY_EXPORT DomainReliabilityConfig {
bool IsValid() const;
- bool DecideIfShouldReportRequest(bool success) const;
+ double GetSampleRate(bool request_successful) const;
// Registers with the JSONValueConverter so it will know how to convert the
// JSON for a config into the struct.
« no previous file with comments | « components/domain_reliability/beacon.cc ('k') | components/domain_reliability/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698