| Index: chrome/browser/printing/print_job_worker.cc
|
| ===================================================================
|
| --- chrome/browser/printing/print_job_worker.cc (revision 18804)
|
| +++ chrome/browser/printing/print_job_worker.cc (working copy)
|
| @@ -50,7 +50,7 @@
|
| PrintJobWorker::PrintJobWorker(PrintJobWorkerOwner* owner)
|
| : Thread("Printing_Worker"),
|
| owner_(owner) {
|
| - // The object is created in the UI thread.
|
| + // The object is created in the IO thread.
|
| DCHECK_EQ(owner_->message_loop(), MessageLoop::current());
|
| }
|
|
|
| @@ -167,7 +167,7 @@
|
| // Is the page available?
|
| scoped_refptr<PrintedPage> page;
|
| if (!document_->GetPage(page_number_.ToInt(), &page)) {
|
| - // The page is implictly requested.
|
| + // The page is implicitly requested.
|
| break;
|
| }
|
| // The page is there, print it.
|
| @@ -192,21 +192,6 @@
|
| printing_context_.DismissDialog();
|
| }
|
|
|
| -void PrintJobWorker::RequestMissingPages() {
|
| - DCHECK_EQ(message_loop(), MessageLoop::current());
|
| - // It may arrive out of order. Don't mind about it.
|
| - if (page_number_ != PageNumber::npos()) {
|
| - // We are printing.
|
| - document_->RequestMissingPages();
|
| - }
|
| - NotificationTask* task = new NotificationTask();
|
| - task->Init(owner_,
|
| - JobEventDetails::ALL_PAGES_REQUESTED,
|
| - document_.get(),
|
| - NULL);
|
| - owner_->message_loop()->PostTask(FROM_HERE, task);
|
| -}
|
| -
|
| void PrintJobWorker::OnDocumentDone() {
|
| DCHECK_EQ(message_loop(), MessageLoop::current());
|
| DCHECK_EQ(page_number_, PageNumber::npos());
|
|
|