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/app/android/cast_crash_reporter_client_android.h" | 5 #include "chromecast/app/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" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 *crash_dir = crash_dir_local; | 62 *crash_dir = crash_dir_local; |
63 return true; | 63 return true; |
64 } | 64 } |
65 | 65 |
66 bool CastCrashReporterClientAndroid::GetCrashDumpLocation( | 66 bool CastCrashReporterClientAndroid::GetCrashDumpLocation( |
67 base::FilePath* crash_dir) { | 67 base::FilePath* crash_dir) { |
68 return CastCrashReporterClientAndroid::GetCrashDumpLocation(process_type_, | 68 return CastCrashReporterClientAndroid::GetCrashDumpLocation(process_type_, |
69 crash_dir); | 69 crash_dir); |
70 } | 70 } |
71 | 71 |
72 size_t CastCrashReporterClientAndroid::RegisterCrashKeys() { | |
73 return crash_keys::RegisterCastCrashKeys(); | |
74 } | |
75 | |
76 bool CastCrashReporterClientAndroid::GetCollectStatsConsent() { | 72 bool CastCrashReporterClientAndroid::GetCollectStatsConsent() { |
77 return android::ChromecastConfigAndroid::GetInstance()->CanSendUsageStats(); | 73 return android::ChromecastConfigAndroid::GetInstance()->CanSendUsageStats(); |
78 } | 74 } |
79 | 75 |
80 int CastCrashReporterClientAndroid::GetAndroidMinidumpDescriptor() { | 76 int CastCrashReporterClientAndroid::GetAndroidMinidumpDescriptor() { |
81 return kAndroidMinidumpDescriptor; | 77 return kAndroidMinidumpDescriptor; |
82 } | 78 } |
83 | 79 |
84 bool CastCrashReporterClientAndroid::EnableBreakpadForProcess( | 80 bool CastCrashReporterClientAndroid::EnableBreakpadForProcess( |
85 const std::string& process_type) { | 81 const std::string& process_type) { |
86 return process_type == switches::kRendererProcess || | 82 return process_type == switches::kRendererProcess || |
87 process_type == switches::kGpuProcess; | 83 process_type == switches::kGpuProcess; |
88 } | 84 } |
89 | 85 |
90 } // namespace chromecast | 86 } // namespace chromecast |
OLD | NEW |