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

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

Issue 517193003: More System Dialog printing code disabled on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@522493002
Patch Set: Mon Sep 8 01:10:20 PDT 2014 Created 6 years, 3 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/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 3ad23457860064a6a14e87de2b276f9097708d5b..cef8b2c40a8e3e5d3b3264f140fb671ea2e63052 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -566,9 +566,11 @@ void PrintPreviewHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("getPrinterCapabilities",
base::Bind(&PrintPreviewHandler::HandleGetPrinterCapabilities,
base::Unretained(this)));
+#if !defined(DISABLE_BASIC_PRINTING)
web_ui()->RegisterMessageCallback("showSystemDialog",
base::Bind(&PrintPreviewHandler::HandleShowSystemDialog,
base::Unretained(this)));
+#endif // !DISABLE_BASIC_PRINTING
web_ui()->RegisterMessageCallback("signIn",
base::Bind(&PrintPreviewHandler::HandleSignin,
base::Unretained(this)));
@@ -1022,6 +1024,7 @@ void PrintPreviewHandler::HandleManageCloudPrint(
false));
}
+#if !defined(DISABLE_BASIC_PRINTING)
void PrintPreviewHandler::HandleShowSystemDialog(
const base::ListValue* /*args*/) {
ReportStats();
@@ -1041,6 +1044,7 @@ void PrintPreviewHandler::HandleShowSystemDialog(
static_cast<PrintPreviewUI*>(web_ui()->GetController());
print_preview_ui->OnCancelPendingPreviewRequest();
}
+#endif // !DISABLE_BASIC_PRINTING
void PrintPreviewHandler::HandleManagePrinters(
const base::ListValue* /*args*/) {
@@ -1286,9 +1290,11 @@ void PrintPreviewHandler::OnPrintPreviewFailed() {
ReportUserActionHistogram(PREVIEW_FAILED);
}
+#if !defined(DISABLE_BASIC_PRINTING)
void PrintPreviewHandler::ShowSystemDialog() {
HandleShowSystemDialog(NULL);
}
+#endif // !DISABLE_BASIC_PRINTING
void PrintPreviewHandler::FileSelected(const base::FilePath& path,
int index, void* params) {

Powered by Google App Engine
This is Rietveld 408576698