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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 861753002: Add experimental v8 code cache options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | content/public/common/web_preferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index abdbfbc52c9a05de6acba9b680ae66fde7186904..94eb29a01f362276b3243968ba7ef0824498d5e3 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -500,6 +500,14 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs(const GURL& url) {
prefs.v8_cache_options = V8_CACHE_OPTIONS_HEURISTICS;
} else if (v8_cache_options == "heuristics-mobile") {
prefs.v8_cache_options = V8_CACHE_OPTIONS_HEURISTICS_MOBILE;
+ } else if (v8_cache_options == "heuristics-default") {
+ prefs.v8_cache_options = V8_CACHE_OPTIONS_HEURISTICS_DEFAULT;
+ } else if (v8_cache_options == "heuristics-default-mobile") {
+ prefs.v8_cache_options = V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE;
+ } else if (v8_cache_options == "recent") {
+ prefs.v8_cache_options = V8_CACHE_OPTIONS_RECENT;
+ } else if (v8_cache_options == "recent-small") {
+ prefs.v8_cache_options = V8_CACHE_OPTIONS_RECENT_SMALL;
} else {
prefs.v8_cache_options = V8_CACHE_OPTIONS_DEFAULT;
}
« no previous file with comments | « no previous file | content/public/common/web_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698