| Index: chrome/browser/ui/webui/print_preview_handler.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/print_preview_handler.cc (revision 98459)
|
| +++ chrome/browser/ui/webui/print_preview_handler.cc (working copy)
|
| @@ -579,14 +579,18 @@
|
|
|
| SelectFile(default_filename);
|
| } else {
|
| - ClearInitiatorTabDetails();
|
| ReportPrintSettingsStats(*settings);
|
| ReportUserActionHistogram(PRINT_TO_PRINTER);
|
| UMA_HISTOGRAM_COUNTS("PrintPreview.PageCount.PrintToPrinter",
|
| GetPageCountFromSettingsDictionary(*settings));
|
|
|
| + // This tries to activate the initiator tab as well, so do not clear the
|
| + // association with the initiator tab yet.
|
| HidePreviewTab();
|
|
|
| + // Do this so the initiator tab can open a new print preview tab.
|
| + ClearInitiatorTabDetails();
|
| +
|
| // The PDF being printed contains only the pages that the user selected,
|
| // so ignore the page range and print all pages.
|
| settings->Remove(printing::kSettingPageRange, NULL);
|
|
|