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

Unified Diff: chrome/browser/printing/print_view_manager.cc

Issue 2523283002: M56: Make printing work for PDF and Flash. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/printing/print_view_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_view_manager.cc
diff --git a/chrome/browser/printing/print_view_manager.cc b/chrome/browser/printing/print_view_manager.cc
index 6afd07b443725b2bb3b55f195554bbb458a5b643..ea49f9b888e4f33ba9966739c1c0e1585eada2b8 100644
--- a/chrome/browser/printing/print_view_manager.cc
+++ b/chrome/browser/printing/print_view_manager.cc
@@ -123,9 +123,13 @@ bool PrintViewManager::PrintPreviewNow(content::RenderFrameHost* rfh,
return true;
}
-void PrintViewManager::PrintPreviewForWebNode() {
+void PrintViewManager::PrintPreviewForWebNode(content::RenderFrameHost* rfh) {
if (print_preview_state_ != NOT_PREVIEWING)
return;
+
+ DCHECK(rfh);
+ DCHECK(!print_preview_rfh_);
+ print_preview_rfh_ = rfh;
print_preview_state_ = USER_INITIATED_PREVIEW;
}
« no previous file with comments | « chrome/browser/printing/print_view_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698