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

Unified Diff: net/nqe/network_qualities_prefs_manager.cc

Issue 2700643002: Increase the NQE cache size from 3 to 10 (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/nqe/network_qualities_prefs_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_qualities_prefs_manager.cc
diff --git a/net/nqe/network_qualities_prefs_manager.cc b/net/nqe/network_qualities_prefs_manager.cc
index e11abd8574cfa60a76d169ca4b919a64c125b750..919cf6cd60c6c1876e7a0fcc044dedee43d8e00d 100644
--- a/net/nqe/network_qualities_prefs_manager.cc
+++ b/net/nqe/network_qualities_prefs_manager.cc
@@ -19,7 +19,7 @@ namespace net {
namespace {
// Maximum size of the prefs that hold the qualities of different networks.
-static const size_t kMaxCacheSize = 3u;
+static const size_t kMaxCacheSize = 10u;
xunjieli 2017/02/16 18:59:57 nit: Can you add a comment here on why big an entr
tbansal1 2017/02/16 21:53:47 Done.
// Parses |value| into a map of NetworkIDs and CachedNetworkQualities,
// and returns the map.
« no previous file with comments | « no previous file | net/nqe/network_qualities_prefs_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698