| 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 {
|
|
|
|
|