• Lei Zhang's avatar
    Fix issue where Android printing does not work the second time. · 97b30d58
    Lei Zhang authored
    In r686771, we converted a base::Callback used by printing::PrintManager
    for Android printing to a base::OnceCallback. This was incorrect, as
    the PrintManager's lifetime is tied to the tab's lifetime. Now printing
    for a given PrintManager works the first time, but never again after the
    OnceCallback has been called. The callback needs to remain valid for the
    duration of the PrintManager's lifetime, so make it a RepeatingCallback.
    
    TBR=vkuzkokov@chromium.org
    
    Bug: 1018377
    Change-Id: I367ea2e1850ee67a30ef024da2b93d4cef701f62
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885001
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Reviewed-by: default avatarBo <boliu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#710381}
    97b30d58
aw_pdf_exporter.cc 4.59 KB