aboutsummaryrefslogblamecommitdiff
path: root/www/chromium/files/patch-components_crash_core_browser_crash__upload__list__crashpad.cc
blob: 2246b881031b2c70095e9476fd87b0dca07f848b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                                               
                                                               


                                                                        
                                               
                       


                                        
                                                    
                                                         
                                                              


                                                                       
                       




                                                                                 
                       


                                                      
--- components/crash/core/browser/crash_upload_list_crashpad.cc.orig	2023-09-13 12:11:42 UTC
+++ components/crash/core/browser/crash_upload_list_crashpad.cc
@@ -38,7 +38,9 @@ CrashUploadListCrashpad::~CrashUploadListCrashpad() = 
 std::vector<std::unique_ptr<UploadList::UploadInfo>>
 CrashUploadListCrashpad::LoadUploadList() {
   std::vector<crash_reporter::Report> reports;
+#if !BUILDFLAG(IS_BSD)
   crash_reporter::GetReports(&reports);
+#endif
 
   std::vector<std::unique_ptr<UploadInfo>> uploads;
   for (const crash_reporter::Report& report : reports) {
@@ -52,9 +54,13 @@ CrashUploadListCrashpad::LoadUploadList() {
 
 void CrashUploadListCrashpad::ClearUploadList(const base::Time& begin,
                                               const base::Time& end) {
+#if !BUILDFLAG(IS_BSD)
   crash_reporter::ClearReportsBetween(begin, end);
+#endif
 }
 
 void CrashUploadListCrashpad::RequestSingleUpload(const std::string& local_id) {
+#if !BUILDFLAG(IS_BSD)
   crash_reporter::RequestSingleCrashUpload(local_id);
+#endif
 }