| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // For linux_syscall_support.h. This makes it safe to call embedded system | 5 // For linux_syscall_support.h. This makes it safe to call embedded system |
| 6 // calls when in seccomp mode. | 6 // calls when in seccomp mode. |
| 7 #define SYS_SYSCALL_ENTRYPOINT "playground$syscallEntryPoint" | 7 #define SYS_SYSCALL_ENTRYPOINT "playground$syscallEntryPoint" |
| 8 | 8 |
| 9 #include "chrome/app/breakpad_linux.h" | 9 #include "chrome/app/breakpad_linux.h" |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "content/public/common/content_descriptors.h" | 44 #include "content/public/common/content_descriptors.h" |
| 45 | 45 |
| 46 #if defined(OS_ANDROID) | 46 #if defined(OS_ANDROID) |
| 47 #include <android/log.h> | 47 #include <android/log.h> |
| 48 #include <sys/stat.h> | 48 #include <sys/stat.h> |
| 49 | 49 |
| 50 #include "base/android/build_info.h" | 50 #include "base/android/build_info.h" |
| 51 #include "base/android/path_utils.h" | 51 #include "base/android/path_utils.h" |
| 52 #include "third_party/lss/linux_syscall_support.h" | 52 #include "third_party/lss/linux_syscall_support.h" |
| 53 #else | 53 #else |
| 54 #include "seccompsandbox/linux_syscall_support.h" | 54 #include "sandbox/linux/seccomp-legacy/linux_syscall_support.h" |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
| 58 #define STAT_STRUCT struct stat | 58 #define STAT_STRUCT struct stat |
| 59 #define FSTAT_FUNC fstat | 59 #define FSTAT_FUNC fstat |
| 60 #else | 60 #else |
| 61 #define STAT_STRUCT struct kernel_stat | 61 #define STAT_STRUCT struct kernel_stat |
| 62 #define FSTAT_FUNC sys_fstat | 62 #define FSTAT_FUNC sys_fstat |
| 63 #endif | 63 #endif |
| 64 | 64 |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 g_process_start_time = timeval_to_ms(&tv); | 1159 g_process_start_time = timeval_to_ms(&tv); |
| 1160 else | 1160 else |
| 1161 g_process_start_time = 0; | 1161 g_process_start_time = 0; |
| 1162 | 1162 |
| 1163 logging::SetDumpWithoutCrashingFunction(&DumpProcess); | 1163 logging::SetDumpWithoutCrashingFunction(&DumpProcess); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 bool IsCrashReporterEnabled() { | 1166 bool IsCrashReporterEnabled() { |
| 1167 return g_is_crash_reporter_enabled; | 1167 return g_is_crash_reporter_enabled; |
| 1168 } | 1168 } |
| OLD | NEW |