Fix print() not working
This commit is contained in:
parent
86215d4300
commit
864a23f72b
2 changed files with 6 additions and 3 deletions
chromium_src/chrome/browser/printing
|
@ -194,7 +194,9 @@ void PrintViewManagerBase::OnShowInvalidPrinterSettingsError() {
|
|||
LOG(ERROR) << "Invalid printer settings";
|
||||
}
|
||||
|
||||
bool PrintViewManagerBase::OnMessageReceived(const IPC::Message& message) {
|
||||
bool PrintViewManagerBase::OnMessageReceived(
|
||||
const IPC::Message& message,
|
||||
content::RenderFrameHost* render_frame_host) {
|
||||
bool handled = true;
|
||||
IPC_BEGIN_MESSAGE_MAP(PrintViewManagerBase, message)
|
||||
IPC_MESSAGE_HANDLER(PrintHostMsg_DidGetPrintedPagesCount,
|
||||
|
|
|
@ -54,10 +54,11 @@ class PrintViewManagerBase : public content::NotificationObserver,
|
|||
std::unique_ptr<IPC::Message> message);
|
||||
|
||||
// Terminates or cancels the print job if one was pending.
|
||||
virtual void RenderProcessGone(base::TerminationStatus status) override;
|
||||
void RenderProcessGone(base::TerminationStatus status) override;
|
||||
|
||||
// content::WebContentsObserver implementation.
|
||||
virtual bool OnMessageReceived(const IPC::Message& message) override;
|
||||
bool OnMessageReceived(const IPC::Message& message,
|
||||
content::RenderFrameHost* render_frame_host) override;
|
||||
|
||||
// IPC Message handlers.
|
||||
virtual void OnPrintingFailed(int cookie);
|
||||
|
|
Loading…
Reference in a new issue