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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 1982433002: Make SimpleCache the default backend on ChromeOS/Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 49b9a266cc34c2c570e158fc385a849d6c0683b0..d32f939343bba08ecd9fd837fd104fb961cdafc7 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -88,12 +88,21 @@ net::BackendType ChooseCacheBackendType() {
}
const std::string experiment_name =
base::FieldTrialList::FindFullName("SimpleCacheTrial");
+#if defined(OS_LINUX) || defined(OS_CHROMEOS)
+ // TODO(gavinp): Remove this experiment in the m53 timeframe.
+ if (experiment_name == "ExperimentNo" ||
+ experiment_name == "ExperimentControl") {
Alexei Svitkine (slow) 2016/05/13 18:40:51 If enabled is the new behavior, then any experimen
gavinp 2016/05/13 19:03:39 Good point. I've renamed the group "Disable" for t
+ return net::CACHE_BACKEND_BLOCKFILE;
+ }
+ return net::CACHE_BACKEND_SIMPLE;
+#else
if (experiment_name == "ExperimentYes" ||
experiment_name == "ExperimentYes2") {
return net::CACHE_BACKEND_SIMPLE;
}
return net::CACHE_BACKEND_BLOCKFILE;
-#endif
+#endif // #if defined(OS_LINUX) || defined(OS_CHROMEOS)
+#endif // #if defined(OS_ANDROID)
}
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698