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

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: 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
Index: components/domain_reliability/beacon.cc
diff --git a/components/domain_reliability/beacon.cc b/components/domain_reliability/beacon.cc
index 3e8a7f7ebdb480468e25e6b0f4049d8b46fd786d..085f3c527237b5998ab995808ea072f914dc0604 100644
--- a/components/domain_reliability/beacon.cc
+++ b/components/domain_reliability/beacon.cc
@@ -42,6 +42,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->SetInteger("weight", weight);
return beacon_value.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698