• Lei Zhang's avatar
    Make Print Preview work correctly at early startup. · e4e9c553
    Lei Zhang authored
    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: default avatarTommy Li <tommycli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#583392}
    e4e9c553
print_view_manager.cc 9.87 KB