Initailize PrintViewManagerBasic for browser window.
This commit is contained in:
parent
c95869e515
commit
87d5b72b76
3 changed files with 4 additions and 14 deletions
|
@ -31,15 +31,6 @@
|
|||
#include "printing/printed_document.h"
|
||||
#include "ui/base/l10n/l10n_util.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include "base/command_line.h"
|
||||
#include "chrome/common/chrome_switches.h"
|
||||
#endif
|
||||
|
||||
#if defined(ENABLE_FULL_PRINTING)
|
||||
#include "chrome/browser/printing/print_error_dialog.h"
|
||||
#endif
|
||||
|
||||
using base::TimeDelta;
|
||||
using content::BrowserThread;
|
||||
|
||||
|
@ -182,10 +173,6 @@ void PrintViewManagerBase::OnPrintingFailed(int cookie) {
|
|||
return;
|
||||
}
|
||||
|
||||
#if defined(ENABLE_FULL_PRINTING)
|
||||
chrome::ShowPrintErrorDialog();
|
||||
#endif
|
||||
|
||||
ReleasePrinterQuery();
|
||||
|
||||
content::NotificationService::current()->Notify(
|
||||
|
|
|
@ -395,7 +395,7 @@ PrintMsg_Print_Params CalculatePrintParamsForCss(
|
|||
}
|
||||
|
||||
bool IsPrintPreviewEnabled() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue