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

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: better 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..df0e65d32a94352c46b2be9bfffc09d1cd6e0bdb 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 (experiment_name == "ExperimentYes" ||
- experiment_name == "ExperimentYes2") {
+#if defined(OS_LINUX) || defined(OS_CHROMEOS)
+ // TODO(gavinp): Remove this kill-switch experiment in the m53 timeframe.
+ if (base::StartsWith(experiment_name, "Disable",
+ base::CompareCase::INSENSITIVE_ASCII)) {
+ return net::CACHE_BACKEND_BLOCKFILE;
+ }
+ return net::CACHE_BACKEND_SIMPLE;
+#else
+ if (base::StartsWith(experiment_name, "ExperimentYes",
+ base::CompareCase::INSENSITIVE_ASCII)) {
return net::CACHE_BACKEND_SIMPLE;
}
return net::CACHE_BACKEND_BLOCKFILE;
-#endif
+#endif // #if defined(OS_LINUX) || defined(OS_CHROMEOS)
mmenke 2016/05/13 19:45:29 Can this just be: if (..."Disable"...) return n
+#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