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

Side by Side 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, 10 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« 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