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

Unified Diff: chrome/common/child_process_logging_posix.cc

Issue 9600060: SetPrinterInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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: chrome/common/child_process_logging_posix.cc
diff --git a/chrome/common/child_process_logging_posix.cc b/chrome/common/child_process_logging_posix.cc
index 2015256fb7529aecd6dbf917e36d46f683499a32..4e2128b56bccb9a77665962b16c7d67a7bf08dd7 100644
--- a/chrome/common/child_process_logging_posix.cc
+++ b/chrome/common/child_process_logging_posix.cc
@@ -29,13 +29,14 @@ char g_client_id[kClientIdSize];
char g_channel[kChannelSize] = "";
static const size_t kGpuStringSize = 32;
-
char g_gpu_vendor_id[kGpuStringSize] = "";
char g_gpu_device_id[kGpuStringSize] = "";
char g_gpu_driver_ver[kGpuStringSize] = "";
char g_gpu_ps_ver[kGpuStringSize] = "";
char g_gpu_vs_ver[kGpuStringSize] = "";
+char g_printer_info[256] = "";
Lei Zhang 2012/03/14 04:20:05 This is unused. You need to put this into the cras
Vitaly Buka (NO REVIEWS) 2012/03/14 20:37:42 Done.
+
static const size_t kNumSize = 32;
char g_num_extensions[kNumSize] = "";
char g_num_switches[kNumSize] = "";
@@ -103,6 +104,11 @@ void SetGpuInfo(const content::GPUInfo& gpu_info) {
g_gpu_vs_ver[kGpuStringSize - 1] = '\0';
}
+void SetPrinterInfo(const char* printer_info) {
eroman 2012/03/14 02:12:49 This is using a different format than the mac/wind
Vitaly Buka (NO REVIEWS) 2012/03/14 20:37:42 Actually it's like URL and extensions here. It's d
+ strncpy(g_printer_info, printer_info, arraysize(g_printer_info) - 1);
+ g_printer_info[arraysize(g_printer_info) - 1] = '\0';
+}
+
void SetNumberOfViews(int number_of_views) {
snprintf(g_num_views, kNumSize - 1, "%d", number_of_views);
g_num_views[kNumSize - 1] = '\0';

Powered by Google App Engine
This is Rietveld 408576698