summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 21:37:40 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 21:37:40 +0000
commit83f48280ce81f40ad442a0618ac2579370f49a06 (patch)
tree3a431d5b020ef4777e72b59682fef852840178d6
parent6de5fa88bb574c780de38272617bf59355ca02d2 (diff)
downloadchromium_src-83f48280ce81f40ad442a0618ac2579370f49a06.zip
chromium_src-83f48280ce81f40ad442a0618ac2579370f49a06.tar.gz
chromium_src-83f48280ce81f40ad442a0618ac2579370f49a06.tar.bz2
Linux: Minor adjustments to the printer crash logging code.
BUG=none TEST=none Review URL: http://codereview.chromium.org/9835001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128306 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/breakpad_linux.cc5
-rw-r--r--chrome/common/child_process_logging_posix.cc1
2 files changed, 5 insertions, 1 deletions
diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc
index eff3a12..a2c4e4e 100644
--- a/chrome/app/breakpad_linux.cc
+++ b/chrome/app/breakpad_linux.cc
@@ -445,6 +445,11 @@ void HandleCrashDump(const BreakpadInfo& info) {
// abcdefghijklmnopqrstuvwxyzabcdef \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
diff --git a/chrome/common/child_process_logging_posix.cc b/chrome/common/child_process_logging_posix.cc
index 916d2e9..7dc012e 100644
--- a/chrome/common/child_process_logging_posix.cc
+++ b/chrome/common/child_process_logging_posix.cc
@@ -110,7 +110,6 @@ void SetPrinterInfo(const char* printer_info) {
std::vector<std::string> info;
base::SplitString(printer_info, L';', &info);
DCHECK_LE(info.size(), kMaxReportedPrinterRecords);
- info.resize(kMaxReportedPrinterRecords);
for (size_t i = 0; i < info.size(); ++i) {
printer_info_str += info[i];
// Truncate long switches, align short ones with spaces to be trimmed later.