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

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

Issue 7721001: PrintPreview: Make ctrl-shift-p start the native print flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 9 years, 4 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_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview_handler.cc
index 5d4aae926eb950657778e1080bcff303767e5f3e..fa5544bea12311ba83ba9442f99ece562a686a48 100644
--- a/chrome/browser/ui/webui/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview_handler.cc
@@ -672,6 +672,10 @@ void PrintPreviewHandler::HandleShowSystemDialog(const ListValue*) {
printing::PrintViewManager* manager = wrapper->print_view_manager();
manager->set_observer(this);
manager->PrintForSystemDialogNow();
+
+ // Cancel the pending preview request if exists.
+ PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(web_ui_);
+ print_preview_ui->OnCancelPendingPreviewRequest();
Lei Zhang 2011/08/25 09:05:49 You can pull this, the associated PrintPreviewUI c
kmadhusu 2011/08/25 17:51:48 Done.
}
void PrintPreviewHandler::HandleManagePrinters(const ListValue*) {

Powered by Google App Engine
This is Rietveld 408576698