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

Unified Diff: chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc

Issue 2696763002: Show notifications for waiting jobs. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc
diff --git a/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc b/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc
index 327e63aed87f769b8e860729e5aa2ff4cd0fd86d..875592b2d1b5e324994418100a637b8fd1f21dbf 100644
--- a/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc
+++ b/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc
@@ -224,8 +224,10 @@ void CupsPrintJobManagerImpl::JobStateUpdated(CupsPrintJob* job,
job->set_state(new_state);
switch (new_state) {
case CupsPrintJob::State::STATE_NONE:
+ // State does not require notification.
+ break;
case CupsPrintJob::State::STATE_WAITING:
- // States do not require notification.
+ NotifyJobUpdated(job);
break;
case CupsPrintJob::State::STATE_STARTED:
NotifyJobStarted(job);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698