| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/nqe/network_quality_estimator_params.h" | 5 #include "net/nqe/network_quality_estimator_params.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 bool effective_connection_type_available = GetEffectiveConnectionTypeForName( | 362 bool effective_connection_type_available = GetEffectiveConnectionTypeForName( |
| 363 forced_value, &forced_effective_connection_type); | 363 forced_value, &forced_effective_connection_type); |
| 364 DCHECK(effective_connection_type_available); | 364 DCHECK(effective_connection_type_available); |
| 365 | 365 |
| 366 // Silence unused variable warning in release builds. | 366 // Silence unused variable warning in release builds. |
| 367 (void)effective_connection_type_available; | 367 (void)effective_connection_type_available; |
| 368 | 368 |
| 369 return forced_effective_connection_type; | 369 return forced_effective_connection_type; |
| 370 } | 370 } |
| 371 | 371 |
| 372 bool persistent_cache_reading_enabled( |
| 373 const std::map<std::string, std::string>& variation_params) { |
| 374 if (GetStringValueForVariationParamWithDefaultValue( |
| 375 variation_params, "persistent_cache_reading_enabled", "false") != |
| 376 "true") { |
| 377 return false; |
| 378 } |
| 379 return true; |
| 380 } |
| 381 |
| 372 } // namespace internal | 382 } // namespace internal |
| 373 | 383 |
| 374 } // namespace nqe | 384 } // namespace nqe |
| 375 | 385 |
| 376 } // namespace net | 386 } // namespace net |
| OLD | NEW |