Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2976)

Unified Diff: chrome/renderer/renderer_main_platform_delegate_mac.mm

Issue 180025: Merge 24777 - Fix crashonlaunch on Snow Leopard... (Closed) Base URL: svn://chrome-svn/chrome/branches/203/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/renderer.sb ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_main_platform_delegate_mac.mm
===================================================================
--- chrome/renderer/renderer_main_platform_delegate_mac.mm (revision 24784)
+++ chrome/renderer/renderer_main_platform_delegate_mac.mm (working copy)
@@ -131,6 +131,20 @@
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);
Property changes on: chrome\renderer\renderer_main_platform_delegate_mac.mm
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/renderer/renderer_main_platform_delegate_mac.mm:r69-2775
Merged /trunk/src/chrome/renderer/renderer_main_platform_delegate_mac.mm:r24777
« no previous file with comments | « chrome/renderer/renderer.sb ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698