Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3206)

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 2974183002: Remove bad CallJavascriptFunctionUnsafe call from PrintPreviewUI (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index bc010ca267d430026c17a4797c091b16208210fe..da6a62d829ff46278269bfdfd7eea3ad29dad78f 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -1594,6 +1594,10 @@ void PrintPreviewHandler::OnPrintPreviewCancelled() {
preview_callbacks_.pop();
}
+void PrintPreviewHandler::OnPrintRequestCancelled() {
+ HandleCancelPendingPrintRequest(nullptr);
+}
+
#if BUILDFLAG(ENABLE_BASIC_PRINT_DIALOG)
void PrintPreviewHandler::ShowSystemDialog() {
HandleShowSystemDialog(NULL);

Powered by Google App Engine
This is Rietveld 408576698