Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: trunk/src/chrome/app/breakpad_linux.cc

Issue 23503070: Revert 223610 "Set the printer info in crash reports using the c..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/chrome/app/breakpad_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/app/breakpad_linux.cc
===================================================================
--- trunk/src/chrome/app/breakpad_linux.cc (revision 223612)
+++ trunk/src/chrome/app/breakpad_linux.cc (working copy)
@@ -1157,6 +1157,11 @@
// abcdef \r\n
// BOUNDARY \r\n
//
+ // zero to 4:
+ // Content-Disposition: form-data; name="prn-info-1" \r\n \r\n
+ // abcdefghijklmnopqrstuvwxyzabcdef \r\n
+ // BOUNDARY \r\n
+ //
// zero or one:
// Content-Disposition: form-data; name="num-switches" \r\n \r\n
// 5 \r\n
@@ -1274,6 +1279,19 @@
writer.Flush();
}
+ unsigned printer_info_len =
+ my_strlen(child_process_logging::g_printer_info);
+ if (printer_info_len) {
+ static const char printer_info_msg[] = "prn-info-";
+ static const unsigned kMaxPrnInfoLen =
+ kMaxReportedPrinterRecords * child_process_logging::kPrinterInfoStrLen;
+ writer.AddPairDataInChunks(printer_info_msg, sizeof(printer_info_msg) - 1,
+ child_process_logging::g_printer_info,
+ std::min(printer_info_len, kMaxPrnInfoLen),
+ child_process_logging::kPrinterInfoStrLen,
+ true);
+ }
+
if (*child_process_logging::g_num_switches) {
writer.AddPairString("num-switches",
child_process_logging::g_num_switches);
« no previous file with comments | « no previous file | trunk/src/chrome/app/breakpad_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698