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

Unified Diff: chrome/app/breakpad_linux.cc

Issue 9600060: SetPrinterInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | chrome/app/breakpad_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_linux.cc
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index 4ab5f486504e15c3001c433402a0a68f100e648d..eff3a12bea23760acdad75459bb69b2abd0f891a 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -574,6 +574,19 @@ void HandleCrashDump(const BreakpadInfo& info) {
false /* Don't strip whitespace. */);
}
+ 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 (my_strlen(child_process_logging::g_num_switches)) {
writer.AddPairString("num-switches",
child_process_logging::g_num_switches);
« no previous file with comments | « no previous file | chrome/app/breakpad_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698