summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 00:47:38 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 00:47:38 +0000
commita51b060edcd1695b240c96b0b7d3d4a25995303e (patch)
tree696e20c9828b370cf926c447402799e3bb89fd6d /chrome/browser/printing
parent767e9978a48a0d0f2c82988f146e8ff62c6941a3 (diff)
downloadchromium_src-a51b060edcd1695b240c96b0b7d3d4a25995303e.zip
chromium_src-a51b060edcd1695b240c96b0b7d3d4a25995303e.tar.gz
chromium_src-a51b060edcd1695b240c96b0b7d3d4a25995303e.tar.bz2
Linux Printing: Move file open operation to file thread.
Also delete the temp file when we're done with it (usually). BUG=22097 TEST=printing still works Review URL: http://codereview.chromium.org/215015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r--chrome/browser/printing/print_dialog_gtk.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_dialog_gtk.cc b/chrome/browser/printing/print_dialog_gtk.cc
index 81171a6..77d2e9b 100644
--- a/chrome/browser/printing/print_dialog_gtk.cc
+++ b/chrome/browser/printing/print_dialog_gtk.cc
@@ -8,6 +8,7 @@
#include <gtk/gtkprintunixdialog.h>
#include <gtk/gtkpagesetupunixdialog.h>
+#include "base/file_util.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "chrome/browser/browser_list.h"
@@ -134,5 +135,7 @@ void PrintDialogGtk::OnJobCompleted(GtkPrintJob* job, GError* error) {
if (job)
g_object_unref(job);
+ file_util::Delete(path_to_pdf_, false);
+
delete this;
}