Change some printing methods to take a PrinterQuery.
The methods being modified are PrintJob::Initialize() and PrintViewManagerBase::CreateNewPrintJob(). Right now they take PrinterQuery's parent class, PrintJobWorkerOwner. However, in non-test situations, these methods always take a PrinterQuery. So just make them to take a PrinterQuery. Once that is done: - PrintJobWorkerOwner no longer needs a cookie() method. Move that into PrinterQuery. - A test class used for testing PrintJob now derives from PrinterQuery. Update the test class to let it continue working. Change-Id: I6214fa481ac57a017111aa2a6f3e1b00c22d96c6 Reviewed-on: https://chromium-review.googlesource.com/1000965 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#550809}
Showing
Please register or sign in to comment