| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/printing/print_view_manager_base.h" | 5 #include "chrome/browser/printing/print_view_manager_base.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 // May be NULL in tests. | 528 // May be NULL in tests. |
| 529 if (!print_job_manager) | 529 if (!print_job_manager) |
| 530 return; | 530 return; |
| 531 | 531 |
| 532 scoped_refptr<PrinterQuery> printer_query; | 532 scoped_refptr<PrinterQuery> printer_query; |
| 533 printer_query = queue_->PopPrinterQuery(cookie); | 533 printer_query = queue_->PopPrinterQuery(cookie); |
| 534 if (!printer_query.get()) | 534 if (!printer_query.get()) |
| 535 return; | 535 return; |
| 536 BrowserThread::PostTask( | 536 BrowserThread::PostTask( |
| 537 BrowserThread::IO, FROM_HERE, | 537 BrowserThread::IO, FROM_HERE, |
| 538 base::Bind(&PrinterQuery::StopWorker, printer_query.get())); | 538 base::Bind(&PrinterQuery::StopWorker, printer_query)); |
| 539 } | 539 } |
| 540 | 540 |
| 541 } // namespace printing | 541 } // namespace printing |
| OLD | NEW |