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

Unified Diff: chrome/browser/chrome_browser_main_posix.cc

Issue 22577010: Printing: Add a basic printing mode without print preview and cloud print. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 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/chrome_browser_main_posix.cc
diff --git a/chrome/browser/chrome_browser_main_posix.cc b/chrome/browser/chrome_browser_main_posix.cc
index 91001374229a345141085988d72870d0d46ed709..e73e492346b2717372c9adc14fe4d7cada27825a 100644
--- a/chrome/browser/chrome_browser_main_posix.cc
+++ b/chrome/browser/chrome_browser_main_posix.cc
@@ -28,9 +28,12 @@
#include "content/public/browser/notification_service.h"
#if defined(TOOLKIT_GTK)
-#include "chrome/browser/printing/print_dialog_gtk.h"
#include "chrome/browser/ui/gtk/chrome_browser_main_extra_parts_gtk.h"
-#endif
+
+#if defined(ENABLE_PRINTING)
+#include "chrome/browser/printing/print_dialog_gtk.h"
+#endif // defined(ENABLE_PRINTING)
+#endif // defined(TOOLKIT_GTK)
using content::BrowserThread;
@@ -348,7 +351,7 @@ void ChromeBrowserMainPartsPosix::PostMainMessageLoopStart() {
action.sa_handler = SIGHUPHandler;
CHECK(sigaction(SIGHUP, &action, NULL) == 0);
-#if defined(TOOLKIT_GTK)
+#if defined(TOOLKIT_GTK) && defined(ENABLE_PRINTING)
printing::PrintingContextGtk::SetCreatePrintDialogFunction(
&PrintDialogGtk::CreatePrintDialog);
#endif
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698