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

Unified Diff: net/nqe/network_quality_estimator_params.cc

Issue 2672733002: Read NQE prefs to network quality store under all cases (Closed)
Patch Set: ps Created 3 years, 11 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
« no previous file with comments | « net/nqe/network_quality_estimator_params.h ('k') | net/nqe/network_quality_estimator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10294264117f2344ccf54fc385e4a3fe97f3f995..8a76bdde4eeb3bc34193b168d76d2aba5b146368 100644
--- a/net/nqe/network_quality_estimator_params.cc
+++ b/net/nqe/network_quality_estimator_params.cc
@@ -369,6 +369,16 @@ EffectiveConnectionType forced_effective_connection_type(
return forced_effective_connection_type;
}
+bool persistent_cache_reading_enabled(
+ const std::map<std::string, std::string>& variation_params) {
+ if (GetStringValueForVariationParamWithDefaultValue(
+ variation_params, "persistent_cache_reading_enabled", "false") !=
+ "true") {
+ return false;
+ }
+ return true;
+}
+
} // namespace internal
} // namespace nqe
« no previous file with comments | « net/nqe/network_quality_estimator_params.h ('k') | net/nqe/network_quality_estimator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698