summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper.cc
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 22:23:13 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 22:23:13 +0000
commita0bfea8ac95229c003a3ab56a4f18773ec8f65a9 (patch)
tree5c2cf7030f5ed01feff27ee9e604dfbc94a11cb0 /chrome/renderer/print_web_view_helper.cc
parent66e5ef6c89a72264e2e4dded0d40490abbef5b31 (diff)
downloadchromium_src-a0bfea8ac95229c003a3ab56a4f18773ec8f65a9.zip
chromium_src-a0bfea8ac95229c003a3ab56a4f18773ec8f65a9.tar.gz
chromium_src-a0bfea8ac95229c003a3ab56a4f18773ec8f65a9.tar.bz2
Made code changes to support print preview pipeline on windows.
BUG=88762 TEST=print preview works after code changes. Review URL: http://codereview.chromium.org/7461096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper.cc')
-rw-r--r--chrome/renderer/print_web_view_helper.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index 028fe2d..7ad456f 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -417,11 +417,6 @@ bool PrintWebViewHelper::FinalizePreviewDocument() {
&(preview_params.metafile_data_handle))) {
return false;
}
-#if defined(OS_WIN)
- Send(new PrintHostMsg_DuplicateSection(routing_id(),
- preview_params.metafile_data_handle,
- &preview_params.metafile_data_handle));
-#endif
Send(new PrintHostMsg_PagesReadyForPreview(routing_id(), preview_params));
return true;
}
@@ -916,7 +911,6 @@ void PrintWebViewHelper::RequestPrintPreview() {
void PrintWebViewHelper::PreviewPageRendered(int page_number,
printing::Metafile* metafile) {
-#if !defined(OS_WIN)
if ((page_number == printing::INVALID_PAGE_INDEX && metafile) ||
(page_number >= printing::FIRST_PAGE_INDEX && !metafile &&
print_preview_context_.IsModifiable())) {
@@ -924,7 +918,6 @@ void PrintWebViewHelper::PreviewPageRendered(int page_number,
DidFinishPrinting(FAIL_PREVIEW);
return;
}
-#endif
uint32 buf_size = 0;
PrintHostMsg_DidPreviewPage_Params preview_page_params;