diff options
author | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 23:21:12 +0000 |
---|---|---|
committer | stuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 23:21:12 +0000 |
commit | e7dd6d8bb28270d49684714aa03f8162ab558bc6 (patch) | |
tree | 18ee34fa7f4b5e35b08094278cff9f9187b0a5ed /chrome/browser/printing/print_job_manager.h | |
parent | 1c0585d585bc9f88ee177553b66e0025d7fe3aa0 (diff) | |
download | chromium_src-e7dd6d8bb28270d49684714aa03f8162ab558bc6.zip chromium_src-e7dd6d8bb28270d49684714aa03f8162ab558bc6.tar.gz chromium_src-e7dd6d8bb28270d49684714aa03f8162ab558bc6.tar.bz2 |
Change the way we wait for print jobs at shutdown on the Mac
Don't try to run a message loop to wait for print jobs after the event loop has already been torn down, or bad things happen.
BUG=28714
TEST=Start a large print job job, then immediately quit. The browser should not crash.
Review URL: http://codereview.chromium.org/3565010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61878 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing/print_job_manager.h')
-rw-r--r-- | chrome/browser/printing/print_job_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_job_manager.h b/chrome/browser/printing/print_job_manager.h index ca2bb47..017b732 100644 --- a/chrome/browser/printing/print_job_manager.h +++ b/chrome/browser/printing/print_job_manager.h @@ -29,6 +29,10 @@ class PrintJobManager : public NotificationObserver { // On browser quit, we should wait to have the print job finished. void OnQuit(); + // Stops all printing jobs. If wait_for_finish is true, tries to give jobs + // a chance to complete before stopping them. + void StopJobs(bool wait_for_finish); + // Queues a semi-initialized worker thread. Can be called from any thread. // Current use case is queuing from the I/O thread. // TODO(maruel): Have them vanish after a timeout (~5 minutes?) |