| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/sandbox_mac.h" | 5 #include "chrome/common/sandbox_mac.h" |
| 6 | 6 |
| 7 #include "base/debug_util.h" | |
| 8 | |
| 9 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 10 #import <OpenGL/OpenGL.h> | 8 #import <OpenGL/OpenGL.h> |
| 11 | 9 |
| 12 extern "C" { | 10 extern "C" { |
| 13 #include <sandbox.h> | 11 #include <sandbox.h> |
| 14 } | 12 } |
| 15 #include <signal.h> | 13 #include <signal.h> |
| 16 #include <sys/param.h> | 14 #include <sys/param.h> |
| 17 | 15 |
| 18 #include "app/gfx/gl/gl_context.h" | 16 #include "app/gfx/gl/gl_context.h" |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { | 577 if (HANDLE_EINTR(fcntl(fd, F_GETPATH, canonical_path)) != 0) { |
| 580 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " | 578 PLOG(FATAL) << "GetCanonicalSandboxPath() failed for: " |
| 581 << path->value(); | 579 << path->value(); |
| 582 return; | 580 return; |
| 583 } | 581 } |
| 584 | 582 |
| 585 *path = FilePath(canonical_path); | 583 *path = FilePath(canonical_path); |
| 586 } | 584 } |
| 587 | 585 |
| 588 } // namespace sandbox | 586 } // namespace sandbox |
| OLD | NEW |