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

Unified Diff: content/child/runtime_features.cc

Issue 1041993004: content::ResourceDispatcherHostImpl changes for stale-while-revalidate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@s-w-r-yhirano-patch
Patch Set: Readability improvements suggested by tyoshino 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/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 5ce09de7e246083242924e966594b016a19b9fe1..b29843fe83989aec18d15961889b7143d4eb488e 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -189,12 +189,6 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kDisablePermissionsAPI))
WebRuntimeFeatures::enablePermissionsAPI(false);
- // Delete "StaleWhileRevalidate" line from chrome_browser_field_trials.cc
- // when this experiment is done.
- if (base::FieldTrialList::FindFullName("StaleWhileRevalidate") == "Enabled" ||
- command_line.HasSwitch(switches::kEnableStaleWhileRevalidate))
- WebRuntimeFeatures::enableStaleWhileRevalidateCacheControl(true);
-
if (command_line.HasSwitch(switches::kDisableV8IdleTasks))
WebRuntimeFeatures::enableV8IdleTasks(false);
else

Powered by Google App Engine
This is Rietveld 408576698