Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 2748253005: Cleanup jobs which have failed. (Closed)

Created:
3 years, 9 months ago by skau
Modified:
3 years, 9 months ago
Reviewers:
Carlson, xdai1
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup jobs which have failed. We're stricter about declaring failed jobs than CUPS. Be sure to remove the jobs from the print queue when we've given up on them. Also, ensure that we don't notify observers after cancellation has been requested. TEST=Start job to unreachable printer, let it time out. Start job to valid printer, click cancel. Run 'lpstat -t', verify that no print jobs are pending. BUG=684853 Review-Url: https://codereview.chromium.org/2748253005 Cr-Commit-Position: refs/heads/master@{#457627} Committed: https://chromium.googlesource.com/chromium/src/+/def538a8cd9e4d982d150d4308e44a2aa4c504ff

Patch Set 1 #

Total comments: 11

Patch Set 2 : address comments #

Patch Set 3 : fix fake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -63 lines) Patch
M chrome/browser/chromeos/printing/cups_print_job.h View 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/cups_print_job_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/printing/cups_print_job_manager_impl.h View 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc View 1 7 chunks +76 lines, -50 lines 0 comments Download
M chrome/browser/chromeos/printing/cups_print_job_notification.cc View 1 1 chunk +9 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/printing/fake_cups_print_job_manager.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/printing/fake_cups_print_job_manager.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
skau
This should be the last of the fixes for print queue monitoring. PTAL.
3 years, 9 months ago (2017-03-16 18:28:37 UTC) #4
Carlson
Seems pretty straightforward. https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc File chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc (right): https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc#newcode159 chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc:159: // Must be run from the ...
3 years, 9 months ago (2017-03-16 18:36:48 UTC) #5
xdai1
https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job.h File chrome/browser/chromeos/printing/cups_print_job.h (right): https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job.h#newcode79 chrome/browser/chromeos/printing/cups_print_job.h:79: bool expired_ = false; Maybe we can merge this ...
3 years, 9 months ago (2017-03-16 19:56:17 UTC) #6
skau
Thanks for the reviews. PTAL. https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job.h File chrome/browser/chromeos/printing/cups_print_job.h (right): https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job.h#newcode79 chrome/browser/chromeos/printing/cups_print_job.h:79: bool expired_ = false; ...
3 years, 9 months ago (2017-03-16 22:14:36 UTC) #7
Carlson
lgtm
3 years, 9 months ago (2017-03-16 22:22:31 UTC) #8
xdai1
lgtm https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job.h File chrome/browser/chromeos/printing/cups_print_job.h (right): https://codereview.chromium.org/2748253005/diff/1/chrome/browser/chromeos/printing/cups_print_job.h#newcode79 chrome/browser/chromeos/printing/cups_print_job.h:79: bool expired_ = false; On 2017/03/16 22:14:36, skau ...
3 years, 9 months ago (2017-03-16 22:56:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748253005/20001
3 years, 9 months ago (2017-03-16 23:20:18 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/385550)
3 years, 9 months ago (2017-03-16 23:46:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748253005/40001
3 years, 9 months ago (2017-03-16 23:58:26 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-17 00:38:17 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/def538a8cd9e4d982d150d4308e4...

Powered by Google App Engine
This is Rietveld 408576698