diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-04 01:29:47 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-04 01:29:47 +0000 |
commit | 53d115dea4e9fcde5dcb9c4ff3cc11886965323a (patch) | |
tree | 656dc51c7a2b945c7a03e1b7de82d4d0d6131bed /chrome/browser/printing | |
parent | e1be56dcd226056bb8af7f82bc1752bb289aa14b (diff) | |
download | chromium_src-53d115dea4e9fcde5dcb9c4ff3cc11886965323a.zip chromium_src-53d115dea4e9fcde5dcb9c4ff3cc11886965323a.tar.gz chromium_src-53d115dea4e9fcde5dcb9c4ff3cc11886965323a.tar.bz2 |
Print Preview: Disabling layout options when the initiator tab is a PDF doc.
See bug description for more details.
BUG=79524
TEST=Navigate to a pdf. hit ctrl+p, the layout options should be disabled.
Review URL: http://codereview.chromium.org/6898055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r-- | chrome/browser/printing/print_preview_message_handler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc index 7c1f171..065bb8a 100644 --- a/chrome/browser/printing/print_preview_message_handler.cc +++ b/chrome/browser/printing/print_preview_message_handler.cc @@ -89,7 +89,8 @@ void PrintPreviewMessageHandler::OnPagesReadyForPreview( std::make_pair(shared_buf, params.data_size)); print_preview_ui->PreviewDataIsAvailable( params.expected_pages_count, - wrapper->print_view_manager()->RenderSourceName()); + wrapper->print_view_manager()->RenderSourceName(), + tab_contents()->contents_mime_type()); } void PrintPreviewMessageHandler::OnPrintPreviewNodeUnderContextMenu() { |