diff options
author | abeera@google.com <abeera@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 22:15:55 +0000 |
---|---|---|
committer | abeera@google.com <abeera@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-04 22:15:55 +0000 |
commit | 7269d64276132c6d4ec7723364656b50d0401648 (patch) | |
tree | 9f2ec124b970f2391266faf9181ef405d5e6a8a4 | |
parent | c6b9937fcb83492597e4001d52ded648efdb0724 (diff) | |
download | chromium_src-7269d64276132c6d4ec7723364656b50d0401648.zip chromium_src-7269d64276132c6d4ec7723364656b50d0401648.tar.gz chromium_src-7269d64276132c6d4ec7723364656b50d0401648.tar.bz2 |
Fix to bug 91320.
Function prototype in Cloud Print Virtual Driver changed to void. Gyp file updated.
BUG=91320
TEST=
Review URL: http://codereview.chromium.org/7542016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95516 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | cloud_print/virtual_driver/posix/backend.gyp | 3 | ||||
-rw-r--r-- | cloud_print/virtual_driver/posix/virtual_driver_posix.cc | 4 |
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. |