Remove print preview RFH before closing incognito mode
Unlike for prints from the system dialog, when printing from print preview the RenderFrameHost is retained by print preview dialog controller and the preview WebContentses are kept alive by the controller and the background printing manager. This causes a CHECK failure in ProfileDestroyer if a print job is still spooling when an incognito window is closed. Since NOTIFICATION_PROFILE_DESTROYED is deprecated and using a KeyedServiceShutdownNotifierFactory does not notify in time, remove these RFHs in browser shutdown directly. Note that this will have the effect of terminating any print jobs that have not been completely rendered, so if the incognito window is closed before a print job is finished, the document will not be printed completely. BUG=579155 Review-Url: https://codereview.chromium.org/2746903005 Cr-Commit-Position: refs/heads/master@{#457524}
Showing
Please register or sign in to comment