Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 91fac7dbd4e81944d5f2cc1787de3870712e5c56..eabeef9f7d14657c01f69b543da2bd0fa9f074f1 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -494,10 +494,14 @@ void SetJobLevel(const CommandLine& cmd_line, |
sandbox::JobLevel job_level, |
uint32 ui_exceptions, |
sandbox::TargetPolicy* policy) { |
- if (ShouldSetJobLevel(cmd_line)) |
+ if (ShouldSetJobLevel(cmd_line)) { |
+#ifdef _WIN64 |
+ policy->SetJobMemoryLimit(4ULL * 1024 * 1024 * 1024, true); |
+#endif |
policy->SetJobLevel(job_level, ui_exceptions); |
- else |
+ } else { |
policy->SetJobLevel(sandbox::JOB_NONE, 0); |
+ } |
} |
// TODO(jschuh): Need get these restrictions applied to NaCl and Pepper. |