Index: content/renderer/render_process_impl.cc |
diff --git a/content/renderer/render_process_impl.cc b/content/renderer/render_process_impl.cc |
index e837e4f5d92f152545a699bc36dcbd80bf26c35c..d4edaa1e915b6f1ec806b0eb8961263a11a89041 100644 |
--- a/content/renderer/render_process_impl.cc |
+++ b/content/renderer/render_process_impl.cc |
@@ -29,6 +29,7 @@ |
#include "base/threading/platform_thread.h" |
#include "base/time/time.h" |
#include "content/child/site_isolation_stats_gatherer.h" |
+#include "content/public/common/bindings_policy.h" |
#include "content/public/common/content_client.h" |
#include "content/public/common/content_features.h" |
#include "content/public/common/content_switches.h" |
@@ -215,6 +216,11 @@ RenderProcessImpl::RenderProcessImpl() |
GetContentClient()->renderer()->ShouldGatherSiteIsolationStats()); |
InitializeTaskScheduler(); |
+ |
+ if (command_line.HasSwitch(switches::kDomAutomationController)) |
+ enabled_bindings_ |= BINDINGS_POLICY_DOM_AUTOMATION; |
+ if (command_line.HasSwitch(switches::kStatsCollectionController)) |
+ enabled_bindings_ |= BINDINGS_POLICY_STATS_COLLECTION; |
} |
RenderProcessImpl::~RenderProcessImpl() { |