From a51b060edcd1695b240c96b0b7d3d4a25995303e Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 18 Sep 2009 00:47:38 +0000 Subject: 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 --- chrome/browser/printing/print_dialog_gtk.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/printing') 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 #include +#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; } -- cgit v1.1