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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 166283002: "Privet" Printing reads DPI for PWG raster conversion from device capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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 | « chrome/browser/local_discovery/privet_http_impl.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index d1f9025316da3f48f854057abe8c78ef0d6505d6..9a586c4c71639d1551218c07a30813a533f5154d 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -1450,19 +1450,8 @@ void PrintPreviewHandler::StartPrivetLocalPrint(
return;
}
- privet_local_print_operation_->SetJobname(
- base::UTF16ToUTF8(title));
-
- const int dpi = printing::kDefaultPdfDpi;
- double scale = dpi;
- scale /= printing::kPointsPerInch;
- // Make vertical rectangle to optimize streaming to printer. Fix orientation
- // by autorotate.
- gfx::Rect area(std::min(page_size.width(), page_size.height()) * scale,
- std::max(page_size.width(), page_size.height()) * scale);
- privet_local_print_operation_->SetConversionSettings(
- printing::PdfRenderSettings(area, dpi, true));
-
+ privet_local_print_operation_->SetJobname(base::UTF16ToUTF8(title));
+ privet_local_print_operation_->SetPageSize(page_size);
privet_local_print_operation_->SetData(data);
Profile* profile = Profile::FromWebUI(web_ui());
« no previous file with comments | « chrome/browser/local_discovery/privet_http_impl.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698