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

Unified Diff: chrome/common/child_process_logging_mac.mm

Issue 23604061: Set the printer info in crash reports using the crash key logging system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory issue 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 | « chrome/common/child_process_logging.h ('k') | chrome/common/child_process_logging_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/child_process_logging_mac.mm
diff --git a/chrome/common/child_process_logging_mac.mm b/chrome/common/child_process_logging_mac.mm
index a6ac7158b62d72aab2fdbebf9adb6499ae6d72b0..a0b03b1cd8aaaac6b10ce67fa568daa3d87d0113 100644
--- a/chrome/common/child_process_logging_mac.mm
+++ b/chrome/common/child_process_logging_mac.mm
@@ -23,7 +23,6 @@ using base::debug::SetCrashKeyValue;
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;
@@ -49,20 +48,6 @@ std::string GetClientId() {
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 | « chrome/common/child_process_logging.h ('k') | chrome/common/child_process_logging_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698