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

Unified Diff: trunk/src/chrome/common/child_process_logging_mac.mm

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
Index: trunk/src/chrome/common/child_process_logging_mac.mm
===================================================================
--- trunk/src/chrome/common/child_process_logging_mac.mm (revision 223612)
+++ trunk/src/chrome/common/child_process_logging_mac.mm (working copy)
@@ -23,6 +23,7 @@
using base::debug::ClearCrashKey;
const char* kGuidParamName = "guid";
+const char* kPrinterInfoNameFormat = "prn-info-%zu";
// Account for the terminating null character.
static const size_t kClientIdSize = 32 + 1;
@@ -48,6 +49,20 @@
return std::string(g_client_id);
}
+void SetPrinterInfo(const char* printer_info) {
+ std::vector<std::string> info;
+ base::SplitString(printer_info, ';', &info);
+ info.resize(kMaxReportedPrinterRecords);
+ for (size_t i = 0; i < info.size(); ++i) {
+ std::string key = base::StringPrintf(kPrinterInfoNameFormat, i);
+ if (!info[i].empty()) {
+ SetCrashKeyValue(key, info[i]);
+ } else {
+ ClearCrashKey(key);
+ }
+ }
+}
+
void SetCommandLine(const CommandLine* command_line) {
DCHECK(command_line);
if (!command_line)
« no previous file with comments | « trunk/src/chrome/common/child_process_logging.h ('k') | trunk/src/chrome/common/child_process_logging_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698