Commit 7e4917f6 authored by rbpotter's avatar rbpotter Committed by Commit Bot

Print Preview: Fix privet/extension printer switch

Bug: None
Change-Id: I5e6f56c34f41cabedade893ccff46d3ed1deda7b
Reviewed-on: https://chromium-review.googlesource.com/691146Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505218}
parent bb22839e
...@@ -725,9 +725,9 @@ void PrintPreviewHandler::HandlePrint(const base::ListValue* args) { ...@@ -725,9 +725,9 @@ void PrintPreviewHandler::HandlePrint(const base::ListValue* args) {
PrinterType type = PrinterType::kPdfPrinter; PrinterType type = PrinterType::kPdfPrinter;
if (print_with_extension) if (print_with_extension)
type = PrinterType::kPrivetPrinter;
else if (print_with_privet)
type = PrinterType::kExtensionPrinter; type = PrinterType::kExtensionPrinter;
else if (print_with_privet)
type = PrinterType::kPrivetPrinter;
PrinterHandler* handler = GetPrinterHandler(type); PrinterHandler* handler = GetPrinterHandler(type);
handler->StartPrint(destination_id, capabilities, title, print_ticket, handler->StartPrint(destination_id, capabilities, title, print_ticket,
gfx::Size(width, height), data, gfx::Size(width, height), data,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment