| Index: chrome/renderer/renderer_main_platform_delegate_mac.mm
|
| diff --git a/chrome/renderer/renderer_main_platform_delegate_mac.mm b/chrome/renderer/renderer_main_platform_delegate_mac.mm
|
| index a165909a25bf072910ab7f7975ca4ff4810bab30..0b657c3f285b63cd47708a6422d4c0b95fd80e09 100644
|
| --- a/chrome/renderer/renderer_main_platform_delegate_mac.mm
|
| +++ b/chrome/renderer/renderer_main_platform_delegate_mac.mm
|
| @@ -131,6 +131,20 @@ bool RendererMainPlatformDelegate::EnableSandbox() {
|
| stringByReplacingOccurrencesOfString:@"USER_HOMEDIR"
|
| withString:NSHomeDirectory()];
|
|
|
| + // Enable 10.5 only sandbox syntax.
|
| + int32 major_version = 0;
|
| + int32 minor_version = 0;
|
| + int32 bugfix_version = 0;
|
| + base::SysInfo::OperatingSystemVersionNumbers(&major_version,
|
| + &minor_version,
|
| + &bugfix_version);
|
| +
|
| + if (major_version == 10 && minor_version == 5) {
|
| + sandbox_data = [sandbox_data
|
| + stringByReplacingOccurrencesOfString:@";10.5_ONLY"
|
| + withString:@""];
|
| + }
|
| +
|
| char* error_buff = NULL;
|
| int error = sandbox_init([sandbox_data UTF8String], 0, &error_buff);
|
| bool success = (error == 0 && error_buff == NULL);
|
|
|