Print Preview: Detecting plugin existence before generating the preview.
commit740ad6a79c7b4c54866389525d199ddfc725e63b
authordpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 May 2011 23:41:34 +0000 (12 23:41 +0000)
committerdpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 May 2011 23:41:34 +0000 (12 23:41 +0000)
tree166f5adc570990fc4ebe5fc79f148671ba6c5ff0
parent702b5dd83099de5ea03b1f11239662fcb260e2b5
Print Preview: Detecting plugin existence before generating the preview.

In case there is no compatible pdf plugin the user is immediately notified
that preview is not available instead of waitingi for the preview to be
generated and then being notified.

BUG=82202
TEST=Load a multi-page doc in print preview, observe the error messages.

Review URL: http://codereview.chromium.org/6982030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85215 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/resources/print_preview.html
chrome/browser/resources/print_preview.js