summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cloud_print/virtual_driver/posix/backend.gyp3
-rw-r--r--cloud_print/virtual_driver/posix/virtual_driver_posix.cc4
2 files changed, 4 insertions, 3 deletions
diff --git a/cloud_print/virtual_driver/posix/backend.gyp b/cloud_print/virtual_driver/posix/backend.gyp
index f77fabf..6f25dba 100644
--- a/cloud_print/virtual_driver/posix/backend.gyp
+++ b/cloud_print/virtual_driver/posix/backend.gyp
@@ -7,6 +7,9 @@
'include_dirs': [
'../..'
],
+ 'variables': {
+ 'chromium_code': 1
+ }
},
'targets' : [
{
diff --git a/cloud_print/virtual_driver/posix/virtual_driver_posix.cc b/cloud_print/virtual_driver/posix/virtual_driver_posix.cc
index a5363f1..ec0a73d 100644
--- a/cloud_print/virtual_driver/posix/virtual_driver_posix.cc
+++ b/cloud_print/virtual_driver/posix/virtual_driver_posix.cc
@@ -19,7 +19,7 @@
#include "cloud_print/virtual_driver/posix/printer_driver_util_posix.h"
-int WriteToTemp(FILE* input_pdf, FilePath output_path) {
+void WriteToTemp(FILE* input_pdf, FilePath output_path) {
FILE* output_pdf;
char buffer[128];
output_pdf = fopen(output_path.value().c_str(), "w");
@@ -78,8 +78,6 @@ int main(int argc, const char* argv[]) {
// AtExitManager is necessary to use the path service.
base::AtExitManager aemanager;
- // File handler for the temporary PDF we pass onto Chrome.
- FILE* output_pdf;
// CommandLine is only setup to enable logging, never used subseqeuently.
CommandLine::Init(argc, argv);
// Location for the log file.