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

Unified Diff: content/child/runtime_features.cc

Issue 104123003: Add a flag for enabling/disabling the navigator content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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/content_switches.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 133a366f40fb13492a983c4ff609c97067816e2a..86d533baa0cc4fa3677b7c675fe44fac1520b0ca 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -43,6 +43,8 @@ static void SetRuntimeFeatureDefaultsForPlatform() {
WebRuntimeFeatures::enableNotifications(false);
// Android does not yet support SharedWorker. crbug.com/154571
WebRuntimeFeatures::enableSharedWorker(false);
+ // Android does not yet support NavigatorContentUtils.
+ WebRuntimeFeatures::enableNavigatorContentUtils(false);
#endif // defined(OS_ANDROID)
}
@@ -64,6 +66,9 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kDisableDesktopNotifications))
WebRuntimeFeatures::enableNotifications(false);
+ if (command_line.HasSwitch(switches::kDisableNavigatorContentUtils))
+ WebRuntimeFeatures::enableNavigatorContentUtils(false);
+
if (command_line.HasSwitch(switches::kDisableLocalStorage))
WebRuntimeFeatures::enableLocalStorage(false);
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698