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

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

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 months 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
« no previous file with comments | « build/all.gyp ('k') | chrome/browser/app_modal_dialog.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) 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 <sys/socket.h> 8 #include <sys/socket.h>
9 #include <sys/uio.h> 9 #include <sys/uio.h>
10 #include <unistd.h> 10 #include <unistd.h>
11 11
12 #include <algorithm> 12 #include <algorithm>
13 #include <string> 13 #include <string>
14 14
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/eintr_wrapper.h" 16 #include "base/eintr_wrapper.h"
17 #include "base/file_version_info_linux.h" 17 #include "base/file_version_info_linux.h"
18 #include "base/global_descriptors_posix.h" 18 #include "base/global_descriptors_posix.h"
19 #include "base/linux_util.h" 19 #include "base/linux_util.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/rand_util.h" 21 #include "base/rand_util.h"
22 #include "base/string_util.h" 22 #include "base/string_util.h"
23 #include "breakpad/linux/directory_reader.h" 23 #include "breakpad/linux/directory_reader.h"
24 #include "breakpad/linux/exception_handler.h" 24 #include "breakpad/linux/exception_handler.h"
25 #include "breakpad/linux/linux_libc_support.h" 25 #include "breakpad/linux/linux_libc_support.h"
26 #include "breakpad/linux/linux_syscall_support.h" 26 #include "breakpad/linux/linux_syscall_support.h"
27 #include "breakpad/linux/memory.h" 27 #include "breakpad/linux/memory.h"
28 #include "chrome/common/chrome_descriptors.h"
28 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
29 #include "chrome/common/chrome_descriptors.h"
30 #include "chrome/installer/util/google_update_settings.h" 30 #include "chrome/installer/util/google_update_settings.h"
31 31
32 static const char kUploadURL[] = 32 static const char kUploadURL[] =
33 "https://clients2.google.com/cr/report"; 33 "https://clients2.google.com/cr/report";
34 34
35 // Writes the value |v| as 16 hex characters to the memory pointed at by 35 // Writes the value |v| as 16 hex characters to the memory pointed at by
36 // |output|. 36 // |output|.
37 static void write_uint64_hex(char* output, uint64_t v) { 37 static void write_uint64_hex(char* output, uint64_t v) {
38 static const char hextable[] = "0123456789abcdef"; 38 static const char hextable[] = "0123456789abcdef";
39 39
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 size_t separator = switch_value.find(","); 611 size_t separator = switch_value.find(",");
612 if (separator != std::string::npos) { 612 if (separator != std::string::npos) {
613 google_update::linux_guid = switch_value.substr(0, separator); 613 google_update::linux_guid = switch_value.substr(0, separator);
614 base::linux_distro = switch_value.substr(separator + 1); 614 base::linux_distro = switch_value.substr(separator + 1);
615 } else { 615 } else {
616 google_update::linux_guid = switch_value; 616 google_update::linux_guid = switch_value;
617 } 617 }
618 EnableRendererCrashDumping(); 618 EnableRendererCrashDumping();
619 } 619 }
620 } 620 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | chrome/browser/app_modal_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698