diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-19 12:01:18 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2021-06-19 12:01:18 +0000 |
commit | c0de12404986565d2a7b66569af5e09ec604ffd9 (patch) | |
tree | 007c6a23022007f52326b10a4843846b59800a00 /src/client/windows/sender | |
parent | 05728773737deb58a10cdbe29750152c13e400bf (diff) | |
parent | 5c069a8915093a3af6bb26639a4ac8aa0db2badb (diff) | |
download | google-breakpad-android12-mainline-media-release.tar.gz |
Snap for 7474514 from 5c069a8915093a3af6bb26639a4ac8aa0db2badb to mainline-media-releaseandroid-mainline-12.0.0_r89android-mainline-12.0.0_r74android-mainline-12.0.0_r62android-mainline-12.0.0_r46android-mainline-12.0.0_r29android-mainline-12.0.0_r12android-mainline-12.0.0_r119android-mainline-12.0.0_r104android12-mainline-media-release
Change-Id: Ib9813bef7c81bcd39b9788281fa7219d68f5891a
Diffstat (limited to 'src/client/windows/sender')
-rw-r--r-- | src/client/windows/sender/crash_report_sender.cc | 6 | ||||
-rw-r--r-- | src/client/windows/sender/crash_report_sender.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/client/windows/sender/crash_report_sender.cc b/src/client/windows/sender/crash_report_sender.cc index ecf626d8..eb2b422a 100644 --- a/src/client/windows/sender/crash_report_sender.cc +++ b/src/client/windows/sender/crash_report_sender.cc @@ -59,7 +59,7 @@ CrashReportSender::CrashReportSender(const wstring &checkpoint_file) ReportResult CrashReportSender::SendCrashReport( const wstring &url, const map<wstring, wstring> ¶meters, - const wstring &dump_file_name, wstring *report_code) { + const map<wstring, wstring> &files, wstring *report_code) { int today = GetCurrentDate(); if (today == last_sent_date_ && max_reports_per_day_ != -1 && @@ -68,8 +68,8 @@ ReportResult CrashReportSender::SendCrashReport( } int http_response = 0; - bool result = HTTPUpload::SendRequest( - url, parameters, dump_file_name, L"upload_file_minidump", NULL, report_code, + bool result = HTTPUpload::SendMultipartPostRequest( + url, parameters, files, NULL, report_code, &http_response); if (result) { diff --git a/src/client/windows/sender/crash_report_sender.h b/src/client/windows/sender/crash_report_sender.h index da1ed0af..7786cc69 100644 --- a/src/client/windows/sender/crash_report_sender.h +++ b/src/client/windows/sender/crash_report_sender.h @@ -77,7 +77,7 @@ class CrashReportSender { int max_reports_per_day() const { return max_reports_per_day_; } - // Sends the specified minidump file, along with the map of + // Sends the specified files, along with the map of // name value pairs, as a multipart POST request to the given URL. // Parameter names must contain only printable ASCII characters, // and may not contain a quote (") character. @@ -89,7 +89,7 @@ class CrashReportSender { // (Otherwise, report_code will be unchanged.) ReportResult SendCrashReport(const wstring &url, const map<wstring, wstring> ¶meters, - const wstring &dump_file_name, + const map<wstring, wstring> &files, wstring *report_code); private: |