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

Unified Diff: chrome/common/crash_keys.h

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_win.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/crash_keys.h
diff --git a/chrome/common/crash_keys.h b/chrome/common/crash_keys.h
index 75d34eb18b4a8ae121e723492fdd6ff6b7ab84a0..22d5374a14c8fdcf19023e1c63d27702eea0b82a 100644
--- a/chrome/common/crash_keys.h
+++ b/chrome/common/crash_keys.h
@@ -24,6 +24,17 @@ size_t RegisterChromeCrashKeys();
// multiple because of process collapsing).
void SetActiveExtensions(const std::set<std::string>& extensions);
+// Sets the printer info. Data should be separated by ';' up to
+// kPrinterInfoCount substrings. Each substring will be truncated if necessary.
+class ScopedPrinterInfo {
+ public:
+ explicit ScopedPrinterInfo(const base::StringPiece& data);
+ ~ScopedPrinterInfo();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ScopedPrinterInfo);
+};
+
// Crash Key Name Constants ////////////////////////////////////////////////////
// The product release/distribution channel.
@@ -59,6 +70,11 @@ extern const char kGPURenderer[];
extern const char kGPUGLVersion[];
#endif
+// The user's printers, up to kPrinterInfoCount. Should be set with
+// ScopedPrinterInfo.
+const size_t kPrinterInfoCount = 4;
+extern const char kPrinterInfo[];
+
#if defined(OS_MACOSX)
namespace mac {
« no previous file with comments | « chrome/common/child_process_logging_win.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698