Use scoped_ptr to pass settings in PrintJobWorker and PrinterQuery.