summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 00:08:33 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 00:08:33 +0000
commitf4400e20f17ddd975688b9e2d43fde7d2c3387d8 (patch)
treebf9fe172614df36c64e653ae0b9763155a3d0c47 /chrome/browser/printing
parent3f4a50f70dc37fde21637a15d83c302df172860a (diff)
downloadchromium_src-f4400e20f17ddd975688b9e2d43fde7d2c3387d8.zip
chromium_src-f4400e20f17ddd975688b9e2d43fde7d2c3387d8.tar.gz
chromium_src-f4400e20f17ddd975688b9e2d43fde7d2c3387d8.tar.bz2
Removed unused code path.
reuse_existing_data is never set true. It should be removed with https://codereview.chromium.org/26558003 Review URL: https://codereview.chromium.org/81563002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/printing')
-rw-r--r--chrome/browser/printing/print_preview_message_handler.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index c629717..e603806 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -146,18 +146,6 @@ void PrintPreviewMessageHandler::OnMetafileReadyForPrinting(
if (!print_preview_ui)
return;
- if (params.reuse_existing_data) {
- // Need to match normal rendering where we are expected to send this.
- PrintHostMsg_DidGetPreviewPageCount_Params temp_params;
- temp_params.page_count = params.expected_pages_count;
- temp_params.document_cookie = params.document_cookie;
- temp_params.is_modifiable = params.modifiable;
- temp_params.preview_request_id = params.preview_request_id;
- print_preview_ui->OnDidGetPreviewPageCount(temp_params);
- print_preview_ui->OnReusePreviewData(params.preview_request_id);
- return;
- }
-
// TODO(joth): This seems like a good match for using RefCountedStaticMemory
// to avoid the memory copy, but the SetPrintPreviewData call chain below
// needs updating to accept the RefCountedMemory* base class.