Chromium Code Reviews| Index: content/common/sandbox_win.cc |
| diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
| index 29fb55713db92c563a4ca2a723682e108769efdf..8ca352384c748ec6fe5f5ec7bf9d0ae4a2aa59dc 100644 |
| --- a/content/common/sandbox_win.cc |
| +++ b/content/common/sandbox_win.cc |
| @@ -700,9 +700,13 @@ base::Process StartSandboxedProcess( |
| sandbox::MITIGATION_DEP | |
| sandbox::MITIGATION_DEP_NO_ATL_THUNK | |
| sandbox::MITIGATION_SEHOP | |
| - sandbox::MITIGATION_NONSYSTEM_FONT_DISABLE | |
| sandbox::MITIGATION_IMAGE_LOAD_NO_REMOTE | |
| sandbox::MITIGATION_IMAGE_LOAD_NO_LOW_LABEL; |
| +#if !defined(NACL_WIN64) |
| + // Only enable for DirectWrite, not GDI. |
| + if (gfx::win::ShouldUseDirectWrite()) |
| + mitigations |= sandbox::MITIGATION_NONSYSTEM_FONT_DISABLE; |
| +#endif |
|
Will Harris
2016/02/23 05:46:02
for the NACL_WIN64 case, I think we can always ena
penny
2016/02/23 21:24:56
Done.
|
| if (policy->SetProcessMitigations(mitigations) != sandbox::SBOX_ALL_OK) |
| return base::Process(); |