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

Side by Side Diff: chrome/app/breakpad_linux.cc

Issue 11293210: Move global_descriptors to base/posix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/posix/global_descriptors.cc ('k') | chrome/browser/android/crash_dump_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include <fcntl.h> 11 #include <fcntl.h>
12 #include <poll.h> 12 #include <poll.h>
13 #include <signal.h> 13 #include <signal.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <sys/socket.h> 15 #include <sys/socket.h>
16 #include <sys/time.h> 16 #include <sys/time.h>
17 #include <sys/types.h> 17 #include <sys/types.h>
18 #include <sys/wait.h> 18 #include <sys/wait.h>
19 #include <sys/uio.h> 19 #include <sys/uio.h>
20 #include <time.h> 20 #include <time.h>
21 #include <unistd.h> 21 #include <unistd.h>
22 22
23 #include <algorithm> 23 #include <algorithm>
24 #include <string> 24 #include <string>
25 25
26 #include "base/command_line.h" 26 #include "base/command_line.h"
27 #include "base/eintr_wrapper.h" 27 #include "base/eintr_wrapper.h"
28 #include "base/file_path.h" 28 #include "base/file_path.h"
29 #include "base/global_descriptors_posix.h"
30 #include "base/linux_util.h" 29 #include "base/linux_util.h"
31 #include "base/path_service.h" 30 #include "base/path_service.h"
31 #include "base/posix/global_descriptors.h"
32 #include "base/process_util.h" 32 #include "base/process_util.h"
33 #include "base/string_util.h" 33 #include "base/string_util.h"
34 #include "breakpad/src/client/linux/handler/exception_handler.h" 34 #include "breakpad/src/client/linux/handler/exception_handler.h"
35 #include "breakpad/src/client/linux/minidump_writer/directory_reader.h" 35 #include "breakpad/src/client/linux/minidump_writer/directory_reader.h"
36 #include "breakpad/src/common/linux/linux_libc_support.h" 36 #include "breakpad/src/common/linux/linux_libc_support.h"
37 #include "breakpad/src/common/memory.h" 37 #include "breakpad/src/common/memory.h"
38 #include "chrome/browser/crash_upload_list.h" 38 #include "chrome/browser/crash_upload_list.h"
39 #include "chrome/common/child_process_logging.h" 39 #include "chrome/common/child_process_logging.h"
40 #include "chrome/common/chrome_paths.h" 40 #include "chrome/common/chrome_paths.h"
41 #include "chrome/common/chrome_switches.h" 41 #include "chrome/common/chrome_switches.h"
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 void InitNonBrowserCrashReporterForAndroid(int minidump_fd) { 1464 void InitNonBrowserCrashReporterForAndroid(int minidump_fd) {
1465 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 1465 const CommandLine* command_line = CommandLine::ForCurrentProcess();
1466 if (command_line->HasSwitch(switches::kEnableCrashReporter)) 1466 if (command_line->HasSwitch(switches::kEnableCrashReporter))
1467 EnableNonBrowserCrashDumping(minidump_fd); 1467 EnableNonBrowserCrashDumping(minidump_fd);
1468 } 1468 }
1469 #endif // OS_ANDROID 1469 #endif // OS_ANDROID
1470 1470
1471 bool IsCrashReporterEnabled() { 1471 bool IsCrashReporterEnabled() {
1472 return g_is_crash_reporter_enabled; 1472 return g_is_crash_reporter_enabled;
1473 } 1473 }
OLDNEW
« no previous file with comments | « base/posix/global_descriptors.cc ('k') | chrome/browser/android/crash_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698