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

Unified Diff: content/child/runtime_features.cc

Issue 2248083002: [Feature Policy] Add command-line flag and about://flags interface for Feature Policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/about_flags.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 3208e7b87de3686a052e4f1ece167de66200657b..44e12634de3e5d885b7559bb04717087338d566e 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -64,6 +64,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
WebRuntimeFeatures::enableOriginTrials(
base::FeatureList::IsEnabled(features::kOriginTrials));
+ WebRuntimeFeatures::enableFeaturePolicy(
+ base::FeatureList::IsEnabled(features::kFeaturePolicy));
+
if (command_line.HasSwitch(switches::kEnableWebBluetooth))
WebRuntimeFeatures::enableWebBluetooth(true);
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698