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

Unified Diff: net/nqe/network_quality_estimator_params.cc

Issue 2763853002: Use Android callback API to obtain cellular signal strength (Closed)
Patch Set: ps 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: net/nqe/network_quality_estimator_params.cc
diff --git a/net/nqe/network_quality_estimator_params.cc b/net/nqe/network_quality_estimator_params.cc
index 7fd4e11f3d82432a1290808f2aa16124cf9caf69..7db3f81b346658bc34cc7d87956e259dbe727d07 100644
--- a/net/nqe/network_quality_estimator_params.cc
+++ b/net/nqe/network_quality_estimator_params.cc
@@ -97,12 +97,12 @@ double GetWeightMultiplierPerSecond(
return pow(0.5, 1.0 / half_life_seconds);
}
-double GetWeightMultiplierPerDbm(
+double GetWeightMultiplierPerSignalStrengthLevel(
const std::map<std::string, std::string>& variation_params) {
// The default weight is set to 1.0, so by default, RSSI has no effect on the
// observation's weight.
return GetDoubleValueForVariationParamWithDefaultValue(
- variation_params, "rssi_weight_per_dbm", 1.0);
+ variation_params, "rssi_weight_per_signal_strength_level", 1.0);
}
const char* GetNameForConnectionType(

Powered by Google App Engine
This is Rietveld 408576698