Chromium Code Reviews| Index: chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc |
| diff --git a/chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc b/chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc |
| index b7a6636416432e87d7592ee25f6a8d7d0eb9741f..ea97d265ab695dda8876aeb6df9e506c7705d9f9 100644 |
| --- a/chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc |
| +++ b/chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc |
| @@ -60,4 +60,11 @@ void CupsPrintJobNotificationManager::OnPrintJobError(CupsPrintJob* job) { |
| notification_map_[job]->OnPrintJobStatusUpdated(); |
| } |
| +void CupsPrintJobNotificationManager::OnPrintJobCancelled(CupsPrintJob* job) { |
| + auto notification = notification_map_.find(job); |
|
xdai1
2017/02/24 19:17:00
Why not use the same format in the other functions
skau
2017/02/24 23:09:34
I've changed it. I had thought notifications were
|
| + if (notification != notification_map_.end()) { |
| + notification->second->OnPrintJobStatusUpdated(); |
| + } |
| +} |
| + |
| } // namespace chromeos |