• Lei Zhang's avatar
    Change some printing methods to take a PrinterQuery. · e80bcd21
    Lei Zhang authored
    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: default avatarRebekah Potter <rbpotter@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#550809}
    e80bcd21
print_job_worker_owner.h 1.79 KB