| Index: chrome/renderer/printing/print_web_view_helper.cc
|
| diff --git a/chrome/renderer/printing/print_web_view_helper.cc b/chrome/renderer/printing/print_web_view_helper.cc
|
| index 29ae1140bdf84b3aa203c390bb2ad1a4e6eb1086..db73c37b671a68dc7e51984a865cf8c0f1daaa67 100644
|
| --- a/chrome/renderer/printing/print_web_view_helper.cc
|
| +++ b/chrome/renderer/printing/print_web_view_helper.cc
|
| @@ -834,10 +834,8 @@ void PrintWebViewHelper::PrintPage(blink::WebLocalFrame* frame,
|
| bool PrintWebViewHelper::OnMessageReceived(const IPC::Message& message) {
|
| bool handled = true;
|
| IPC_BEGIN_MESSAGE_MAP(PrintWebViewHelper, message)
|
| -#if !defined(OS_WIN)
|
| IPC_MESSAGE_HANDLER(PrintMsg_PrintPages, OnPrintPages)
|
| IPC_MESSAGE_HANDLER(PrintMsg_PrintForSystemDialog, OnPrintForSystemDialog)
|
| -#endif // !OS_WIN
|
| IPC_MESSAGE_HANDLER(PrintMsg_InitiatePrintPreview, OnInitiatePrintPreview)
|
| IPC_MESSAGE_HANDLER(PrintMsg_PrintPreview, OnPrintPreview)
|
| IPC_MESSAGE_HANDLER(PrintMsg_PrintForPrintPreview, OnPrintForPrintPreview)
|
| @@ -934,7 +932,6 @@ bool PrintWebViewHelper::GetPrintFrame(blink::WebLocalFrame** frame) {
|
| return true;
|
| }
|
|
|
| -#if !defined(OS_WIN)
|
| void PrintWebViewHelper::OnPrintPages() {
|
| blink::WebLocalFrame* frame;
|
| if (GetPrintFrame(&frame))
|
| @@ -947,9 +944,9 @@ void PrintWebViewHelper::OnPrintForSystemDialog() {
|
| NOTREACHED();
|
| return;
|
| }
|
| +
|
| Print(frame, print_preview_context_.source_node());
|
| }
|
| -#endif // !OS_WIN
|
|
|
| void PrintWebViewHelper::GetPageSizeAndContentAreaFromPageLayout(
|
| const PageSizeMargins& page_layout_in_points,
|
| @@ -1226,7 +1223,6 @@ void PrintWebViewHelper::PrintNode(const blink::WebNode& node) {
|
| print_node_in_progress_ = false;
|
| }
|
|
|
| -#if !defined(OS_WIN)
|
| void PrintWebViewHelper::Print(blink::WebLocalFrame* frame,
|
| const blink::WebNode& node) {
|
| // If still not finished with earlier print request simply ignore.
|
| @@ -1260,7 +1256,6 @@ void PrintWebViewHelper::Print(blink::WebLocalFrame* frame,
|
| DidFinishPrinting(FAIL_PRINT);
|
| }
|
| }
|
| -#endif // !OS_WIN
|
|
|
| void PrintWebViewHelper::DidFinishPrinting(PrintingResult result) {
|
| switch (result) {
|
|
|