| 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/app/breakpad_linux.h" | 5 #include "chrome/app/breakpad_linux.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <sys/socket.h> | 9 #include <sys/socket.h> |
| 10 #include <sys/time.h> | 10 #include <sys/time.h> |
| 11 #include <sys/types.h> | 11 #include <sys/types.h> |
| 12 #include <sys/uio.h> | 12 #include <sys/uio.h> |
| 13 #include <time.h> | 13 #include <time.h> |
| 14 #include <unistd.h> | 14 #include <unistd.h> |
| 15 | 15 |
| 16 #include <algorithm> | 16 #include <algorithm> |
| 17 #include <string> | 17 #include <string> |
| 18 | 18 |
| 19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
| 20 #include "base/eintr_wrapper.h" | 20 #include "base/eintr_wrapper.h" |
| 21 #include "base/file_path.h" | 21 #include "base/file_path.h" |
| 22 #include "base/global_descriptors_posix.h" | 22 #include "base/global_descriptors_posix.h" |
| 23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
| 24 #include "base/rand_util.h" | |
| 25 #include "base/string_util.h" | 24 #include "base/string_util.h" |
| 26 #include "breakpad/src/client/linux/handler/exception_handler.h" | 25 #include "breakpad/src/client/linux/handler/exception_handler.h" |
| 27 #include "breakpad/src/client/linux/minidump_writer/directory_reader.h" | 26 #include "breakpad/src/client/linux/minidump_writer/directory_reader.h" |
| 28 #include "breakpad/src/common/linux/linux_libc_support.h" | 27 #include "breakpad/src/common/linux/linux_libc_support.h" |
| 29 #include "breakpad/src/common/linux/linux_syscall_support.h" | 28 #include "breakpad/src/common/linux/linux_syscall_support.h" |
| 30 #include "breakpad/src/common/linux/memory.h" | 29 #include "breakpad/src/common/linux/memory.h" |
| 31 #include "chrome/common/chrome_descriptors.h" | 30 #include "chrome/common/chrome_descriptors.h" |
| 32 #include "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
| 33 #include "chrome/common/chrome_switches.h" | 32 #include "chrome/common/chrome_switches.h" |
| 34 #include "chrome/common/chrome_version_info_posix.h" | 33 #include "chrome/common/chrome_version_info_posix.h" |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 struct timeval tv; | 770 struct timeval tv; |
| 772 if (!gettimeofday(&tv, NULL)) | 771 if (!gettimeofday(&tv, NULL)) |
| 773 uptime = timeval_to_ms(&tv); | 772 uptime = timeval_to_ms(&tv); |
| 774 else | 773 else |
| 775 uptime = 0; | 774 uptime = 0; |
| 776 } | 775 } |
| 777 | 776 |
| 778 bool IsCrashReporterEnabled() { | 777 bool IsCrashReporterEnabled() { |
| 779 return is_crash_reporter_enabled; | 778 return is_crash_reporter_enabled; |
| 780 } | 779 } |
| OLD | NEW |