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

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

Issue 7740005: Print preview not showing if default print is invalid. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Update per code review 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_ui.cc
diff --git a/chrome/browser/ui/webui/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview_ui.cc
index 208d207a94a28aaa204d6c21e663bd39edae94b6..eea83de14ef5fc13b735cc155de490bcbc0e700a 100644
--- a/chrome/browser/ui/webui/print_preview_ui.cc
+++ b/chrome/browser/ui/webui/print_preview_ui.cc
@@ -232,6 +232,14 @@ void PrintPreviewUI::OnPrintPreviewFailed() {
CallJavascriptFunction("printPreviewFailed");
}
+void PrintPreviewUI::OnInvalidPrinterSettings(bool show_alert_dialog) {
kmadhusu 2011/08/30 02:11:27 As I said earlier, |show_alert_dialog| is not requ
arthurhsu 2011/08/30 20:43:03 Done.
+ if (show_alert_dialog) {
+ CallJavascriptFunction("invalidPrinterSettingsAlert");
+ } else {
+ CallJavascriptFunction("invalidPrinterSettings");
+ }
+}
+
PrintPreviewDataService* PrintPreviewUI::print_preview_data_service() {
return PrintPreviewDataService::GetInstance();
}

Powered by Google App Engine
This is Rietveld 408576698