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

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

Issue 9762004: Block scripted printing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/print_view_manager.cc
===================================================================
--- chrome/browser/printing/print_view_manager.cc (revision 127745)
+++ chrome/browser/printing/print_view_manager.cc (working copy)
@@ -133,11 +133,13 @@
}
void PrintViewManager::PreviewPrintingRequestCancelled() {
- if (!web_contents())
- return;
Send(new PrintMsg_PreviewPrintingRequestCancelled(routing_id()));
}
+void PrintViewManager::SetScriptedPrintingBlocked(bool blocked) {
+ Send(new PrintMsg_SetScriptedPrintingBlocked(routing_id(), blocked));
+}
+
void PrintViewManager::set_observer(PrintViewManagerObserver* observer) {
DCHECK(!observer || !observer_);
observer_ = observer;
« no previous file with comments | « chrome/browser/printing/print_view_manager.h ('k') | chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698