OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/app/shell_crash_reporter_client.h" | 5 #include "content/shell/app/shell_crash_reporter_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 base::string16* version, | 28 base::string16* version, |
29 base::string16* special_build, | 29 base::string16* special_build, |
30 base::string16* channel_name) { | 30 base::string16* channel_name) { |
31 *product_name = base::ASCIIToUTF16("content_shell"); | 31 *product_name = base::ASCIIToUTF16("content_shell"); |
32 *version = base::ASCIIToUTF16(CONTENT_SHELL_VERSION); | 32 *version = base::ASCIIToUTF16(CONTENT_SHELL_VERSION); |
33 *special_build = base::string16(); | 33 *special_build = base::string16(); |
34 *channel_name = base::string16(); | 34 *channel_name = base::string16(); |
35 } | 35 } |
36 #endif | 36 #endif |
37 | 37 |
38 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) | 38 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
39 void ShellCrashReporterClient::GetProductNameAndVersion( | 39 void ShellCrashReporterClient::GetProductNameAndVersion( |
40 const char** product_name, | 40 const char** product_name, |
41 const char** version) { | 41 const char** version) { |
42 *product_name = "content_shell"; | 42 *product_name = "content_shell"; |
43 *version = CONTENT_SHELL_VERSION; | 43 *version = CONTENT_SHELL_VERSION; |
44 } | 44 } |
45 | 45 |
46 base::FilePath ShellCrashReporterClient::GetReporterLogFilename() { | 46 base::FilePath ShellCrashReporterClient::GetReporterLogFilename() { |
47 return base::FilePath(FILE_PATH_LITERAL("uploads.log")); | 47 return base::FilePath(FILE_PATH_LITERAL("uploads.log")); |
48 } | 48 } |
(...skipping 17 matching lines...) Expand all Loading... |
66 bool ShellCrashReporterClient::EnableBreakpadForProcess( | 66 bool ShellCrashReporterClient::EnableBreakpadForProcess( |
67 const std::string& process_type) { | 67 const std::string& process_type) { |
68 return process_type == switches::kRendererProcess || | 68 return process_type == switches::kRendererProcess || |
69 process_type == switches::kPluginProcess || | 69 process_type == switches::kPluginProcess || |
70 process_type == switches::kPpapiPluginProcess || | 70 process_type == switches::kPpapiPluginProcess || |
71 process_type == switches::kZygoteProcess || | 71 process_type == switches::kZygoteProcess || |
72 process_type == switches::kGpuProcess; | 72 process_type == switches::kGpuProcess; |
73 } | 73 } |
74 | 74 |
75 } // namespace content | 75 } // namespace content |
OLD | NEW |