[Printing] Change |showSystemDialogDone()| timing
In |window.print()| code path for Android, we have the call stack like this: PrintJobWorker::GetSettingsWithUI() -> PrintingContextAndroid::AskUserForSettings() -> PrintingContext.showPrintDialog() (Java) We have set |callback_| in |PrintingContextAndroid| to be |PrintJobWorker::GetSettingsDone()|, but didn't call it in later stage unless something fails. This CL makes |PrintingControllerImpl| call |PrintingContext.showSystemDialogDone()| no matter what happens. This is because the first |GetSettingsWithUI()| for |window.print()| on Android is only to wake up |PrintManager| to start printing job. We will set the real settings in later |GetSettingsWithUI()| call. Bug: 863297 Change-Id: I3be0a3dceab134db7a47e0c1b48ccd1802e74447 Reviewed-on: https://chromium-review.googlesource.com/1162754Reviewed-by:Changwan Ryu <changwan@chromium.org> Reviewed-by:
Lei Zhang <thestig@chromium.org> Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Cr-Commit-Position: refs/heads/master@{#582980}
Showing
Please register or sign in to comment