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

Unified Diff: components/domain_reliability/beacon.cc

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.h ('k') | components/domain_reliability/config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/beacon.cc
diff --git a/components/domain_reliability/beacon.cc b/components/domain_reliability/beacon.cc
index 85ec54b13ed0567457dc2e0269f3a6e4b29751e6..0fc9e4aef1c6201e294fb94ec927c96032dbe830 100644
--- a/components/domain_reliability/beacon.cc
+++ b/components/domain_reliability/beacon.cc
@@ -44,6 +44,7 @@ scoped_ptr<Value> DomainReliabilityBeacon::ToValue(
beacon_value->SetInteger("request_age_ms", request_age.InMilliseconds());
bool network_changed = last_network_change_time > start_time;
beacon_value->SetBoolean("network_changed", network_changed);
+ beacon_value->SetDouble("sample_rate", sample_rate);
return beacon_value.Pass();
}
« no previous file with comments | « components/domain_reliability/beacon.h ('k') | components/domain_reliability/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698