| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/file_version_info_linux.h" | 22 #include "base/file_version_info_linux.h" |
| 23 #include "base/global_descriptors_posix.h" | 23 #include "base/global_descriptors_posix.h" |
| 24 #include "base/path_service.h" | 24 #include "base/path_service.h" |
| 25 #include "base/rand_util.h" | 25 #include "base/rand_util.h" |
| 26 #include "base/string_util.h" | 26 #include "base/string_util.h" |
| 27 #include "breakpad/linux/directory_reader.h" | 27 #include "breakpad/src/client/linux/handler/exception_handler.h" |
| 28 #include "breakpad/linux/exception_handler.h" | 28 #include "breakpad/src/client/linux/minidump_writer/directory_reader.h" |
| 29 #include "breakpad/linux/linux_libc_support.h" | 29 #include "breakpad/src/common/linux/linux_libc_support.h" |
| 30 #include "breakpad/linux/linux_syscall_support.h" | 30 #include "breakpad/src/common/linux/linux_syscall_support.h" |
| 31 #include "breakpad/linux/memory.h" | 31 #include "breakpad/src/common/linux/memory.h" |
| 32 #include "chrome/common/chrome_descriptors.h" | 32 #include "chrome/common/chrome_descriptors.h" |
| 33 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
| 34 #include "chrome/common/chrome_switches.h" | 34 #include "chrome/common/chrome_switches.h" |
| 35 #include "chrome/installer/util/google_update_settings.h" | 35 #include "chrome/installer/util/google_update_settings.h" |
| 36 | 36 |
| 37 static const char kUploadURL[] = | 37 static const char kUploadURL[] = |
| 38 "https://clients2.google.com/cr/report"; | 38 "https://clients2.google.com/cr/report"; |
| 39 | 39 |
| 40 static time_t uptime = 0; | 40 static time_t uptime = 0; |
| 41 | 41 |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 EnableNonBrowserCrashDumping(); | 707 EnableNonBrowserCrashDumping(); |
| 708 } | 708 } |
| 709 | 709 |
| 710 // Set the base process uptime value. | 710 // Set the base process uptime value. |
| 711 struct timeval tv; | 711 struct timeval tv; |
| 712 if (!gettimeofday(&tv, NULL)) | 712 if (!gettimeofday(&tv, NULL)) |
| 713 uptime = tv.tv_sec; | 713 uptime = tv.tv_sec; |
| 714 else | 714 else |
| 715 uptime = 0; | 715 uptime = 0; |
| 716 } | 716 } |
| OLD | NEW |