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

Unified Diff: content/child/runtime_features.cc

Issue 1876473002: Add a feature flag for enabling subscription restrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 dc23cc5794b683639eb16e0333025409334d0c33..c400bb6f377b27b6a426b6aa691a1ce7c4df9861 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -83,6 +83,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kEnableNotificationActionIcons))
WebRuntimeFeatures::enableNotificationActionIcons(true);
+ if (base::FeatureList::IsEnabled(features::kWebPushProtocol))
+ WebRuntimeFeatures::enablePushSubscriptionRestrictions(true);
+
if (command_line.HasSwitch(switches::kDisableSharedWorkers))
WebRuntimeFeatures::enableSharedWorker(false);

Powered by Google App Engine
This is Rietveld 408576698