| 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 05c41fbcf0013b65e72176be8be70f61cf07db52..3e7b4d9f9254161804eb61acd51f253b3d1c0bc1 100644
|
| --- a/chrome/browser/printing/print_preview_message_handler.cc
|
| +++ b/chrome/browser/printing/print_preview_message_handler.cc
|
| @@ -13,6 +13,7 @@
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/printing/print_job_manager.h"
|
| #include "chrome/browser/printing/print_preview_tab_controller.h"
|
| +#include "chrome/browser/printing/print_view_manager.h"
|
| #include "chrome/browser/printing/printer_query.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| #include "chrome/browser/ui/webui/print_preview_ui.h"
|
| @@ -250,6 +251,11 @@ void PrintPreviewMessageHandler::NavigateToPendingEntry(
|
| DCHECK_EQ(NavigationController::RELOAD, reload_type);
|
| return;
|
| }
|
| + // If |tab| is navigating and it has a print preview tab, notify |tab| to
|
| + // consider print preview done so it unfreezes the renderer in the case of
|
| + // window.print().
|
| + if (preview_tab)
|
| + tab->print_view_manager()->PrintPreviewDone();
|
| }
|
|
|
| } // namespace printing
|
|
|