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

Unified Diff: content/common/content_switches_internal.cc

Issue 1192323002: Cleanup: Remove experimental V8 cache strategies that we discarded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better comments. Created 5 years, 6 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
Index: content/common/content_switches_internal.cc
diff --git a/content/common/content_switches_internal.cc b/content/common/content_switches_internal.cc
index c13396ea3cac087b248c49d79ce8ad0b3e7ef6cc..76871e4d4f856fd439f3a5bfaeeb2bb76dbe259c 100644
--- a/content/common/content_switches_internal.cc
+++ b/content/common/content_switches_internal.cc
@@ -70,28 +70,12 @@ V8CacheOptions GetV8CacheOptions() {
command_line.GetSwitchValueASCII(switches::kV8CacheOptions);
if (v8_cache_options.empty())
v8_cache_options = base::FieldTrialList::FindFullName("V8CacheOptions");
- if (v8_cache_options == "parse") {
+ if (v8_cache_options == "none") {
+ return V8_CACHE_OPTIONS_NONE;
+ } else if (v8_cache_options == "parse") {
return V8_CACHE_OPTIONS_PARSE;
} else if (v8_cache_options == "code") {
return V8_CACHE_OPTIONS_CODE;
- } else if (v8_cache_options == "code-compressed") {
- return V8_CACHE_OPTIONS_CODE_COMPRESSED;
- } else if (v8_cache_options == "none") {
- return V8_CACHE_OPTIONS_NONE;
- } else if (v8_cache_options == "parse-memory") {
- return V8_CACHE_OPTIONS_PARSE_MEMORY;
- } else if (v8_cache_options == "heuristics") {
- return V8_CACHE_OPTIONS_HEURISTICS;
- } else if (v8_cache_options == "heuristics-mobile") {
- return V8_CACHE_OPTIONS_HEURISTICS_MOBILE;
- } else if (v8_cache_options == "heuristics-default") {
- return V8_CACHE_OPTIONS_HEURISTICS_DEFAULT;
- } else if (v8_cache_options == "heuristics-default-mobile") {
- return V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE;
- } else if (v8_cache_options == "recent") {
- return V8_CACHE_OPTIONS_RECENT;
- } else if (v8_cache_options == "recent-small") {
- return V8_CACHE_OPTIONS_RECENT_SMALL;
} else {
return V8_CACHE_OPTIONS_DEFAULT;
}
« no previous file with comments | « content/browser/service_worker/service_worker_browsertest.cc ('k') | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698