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

Unified Diff: content/child/runtime_features.cc

Issue 2053573002: Speculatively launch Service Workers on mouse/touch events. [5/5] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/evnets/events/ Created 4 years, 4 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 | « chrome/browser/chrome_service_worker_browsertest.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 6c23bd3897113a6a838265c38e26a7faf20c41e5..873f2c9d18c197bfc2c1b3281f26d9ebce6e0616 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -261,6 +261,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
base::FeatureList::IsEnabled(features::kWebPayments));
#endif
+ if (base::FeatureList::IsEnabled(features::kSpeculativeLaunchServiceWorker))
+ WebRuntimeFeatures::enableSpeculativeLaunchServiceWorker(true);
+
// Enable explicitly enabled features, and then disable explicitly disabled
// ones.
if (command_line.HasSwitch(switches::kEnableBlinkFeatures)) {
« no previous file with comments | « chrome/browser/chrome_service_worker_browsertest.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698