Make Print Preview work correctly at early startup.
Print Preview needs the PDF plugin to work, but plugin loading happens asynchronously at startup. So querying the PluginService with GetPluginInfoByPath() may fail because the plugins have not been loaded yet. However, since the PDF plugin is a built-in PPAPI plugin, it does not need to be loaded from disk asynchronously. Since it is already registered, call GetRegisteredPpapiPluginInfo() instead. BUG=857074 Change-Id: I729b40329f1de92da6789efbbbae7e2c09ab8b51 Reviewed-on: https://chromium-review.googlesource.com/1175553 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#583392}
Showing
Please register or sign in to comment