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

Unified Diff: chrome/browser/printing/background_printing_manager.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/printing/background_printing_manager.cc
diff --git a/chrome/browser/printing/background_printing_manager.cc b/chrome/browser/printing/background_printing_manager.cc
index 330ecb907e49b463e3e287048798c2e1f74f23bd..fd10907e4f1243722d7abb0e1bdef2f935f9f135 100644
--- a/chrome/browser/printing/background_printing_manager.cc
+++ b/chrome/browser/printing/background_printing_manager.cc
@@ -113,6 +113,11 @@ void BackgroundPrintingManager::DeletePreviewContentsForBrowserContext(
}
}
+void BackgroundPrintingManager::OnPrintRequestCancelled(
+ WebContents* preview_contents) {
+ DeletePreviewContents(preview_contents);
+}
+
void BackgroundPrintingManager::DeletePreviewContents(
WebContents* preview_contents) {
auto i = printing_contents_map_.find(preview_contents);
« no previous file with comments | « chrome/browser/printing/background_printing_manager.h ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698