Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2902)

Unified Diff: chrome/browser/printing/print_preview_message_handler.cc

Issue 81563002: Removed unused code path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/native_layer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_message_handler.cc
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index c629717a5dad8d99eb8f49f55c44a6c24fa89121..e603806de61259ea4fa5bec2d210a63b40d5b627 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.
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/native_layer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698