OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/crash/android/cast_crash_reporter_client_android.h" | 5 #include "chromecast/crash/android/cast_crash_reporter_client_android.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "chromecast/android/chromecast_config_android.h" | 11 #include "chromecast/android/chromecast_config_android.h" |
12 #include "chromecast/common/global_descriptors.h" | 12 #include "chromecast/common/global_descriptors.h" |
13 #include "chromecast/common/version.h" | 13 #include "chromecast/common/version.h" |
14 #include "chromecast/crash/cast_crash_keys.h" | 14 #include "chromecast/crash/cast_crash_keys.h" |
15 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
16 | 16 |
17 namespace chromecast { | 17 namespace chromecast { |
18 | 18 |
19 CastCrashReporterClientAndroid::CastCrashReporterClientAndroid() { | 19 CastCrashReporterClientAndroid::CastCrashReporterClientAndroid() { |
20 } | 20 } |
21 | 21 |
22 CastCrashReporterClientAndroid::~CastCrashReporterClientAndroid() { | 22 CastCrashReporterClientAndroid::~CastCrashReporterClientAndroid() { |
23 } | 23 } |
24 | 24 |
25 void CastCrashReporterClientAndroid::GetProductNameAndVersion( | 25 void CastCrashReporterClientAndroid::GetProductNameAndVersion( |
26 const char** product_name, | 26 const char** product_name, |
27 const char** version) { | 27 const char** version) { |
28 *product_name = "media_shell"; | 28 *product_name = "media_shell"; |
29 *version = PRODUCT_VERSION | 29 *version = PRODUCT_VERSION |
30 #if CAST_IS_DEBUG_BUILD | 30 #if CAST_IS_DEBUG_BUILD() |
31 ".debug" | 31 ".debug" |
32 #endif | 32 #endif |
33 "." CAST_BUILD_REVISION; | 33 "." CAST_BUILD_REVISION; |
34 } | 34 } |
35 | 35 |
36 base::FilePath CastCrashReporterClientAndroid::GetReporterLogFilename() { | 36 base::FilePath CastCrashReporterClientAndroid::GetReporterLogFilename() { |
37 return base::FilePath(FILE_PATH_LITERAL("uploads.log")); | 37 return base::FilePath(FILE_PATH_LITERAL("uploads.log")); |
38 } | 38 } |
39 | 39 |
40 bool CastCrashReporterClientAndroid::GetCrashDumpLocation( | 40 bool CastCrashReporterClientAndroid::GetCrashDumpLocation( |
(...skipping 27 matching lines...) Expand all Loading... |
68 return kAndroidMinidumpDescriptor; | 68 return kAndroidMinidumpDescriptor; |
69 } | 69 } |
70 | 70 |
71 bool CastCrashReporterClientAndroid::EnableBreakpadForProcess( | 71 bool CastCrashReporterClientAndroid::EnableBreakpadForProcess( |
72 const std::string& process_type) { | 72 const std::string& process_type) { |
73 return process_type == switches::kRendererProcess || | 73 return process_type == switches::kRendererProcess || |
74 process_type == switches::kGpuProcess; | 74 process_type == switches::kGpuProcess; |
75 } | 75 } |
76 | 76 |
77 } // namespace chromecast | 77 } // namespace chromecast |
OLD | NEW |