summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/render_process_host.cc')
-rw-r--r--chrome/browser/render_process_host.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/render_process_host.cc b/chrome/browser/render_process_host.cc
index ed969a6..b39c89b 100644
--- a/chrome/browser/render_process_host.cc
+++ b/chrome/browser/render_process_host.cc
@@ -372,6 +372,14 @@ bool RenderProcessHost::Init() {
return false;
}
+ CommandLine command_line;
+ if (command_line.HasSwitch(switches::kGearsInRenderer)) {
+ if (!AddPolicyForGearsInRenderer(policy)) {
+ NOTREACHED();
+ return false;
+ }
+ }
+
if (!AddDllEvictionPolicy(policy)) {
NOTREACHED();
return false;