summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
Diffstat (limited to 'printing')
-rw-r--r--printing/printing_context_cairo.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/printing/printing_context_cairo.cc b/printing/printing_context_cairo.cc
index d1c43f1..552cfbb 100644
--- a/printing/printing_context_cairo.cc
+++ b/printing/printing_context_cairo.cc
@@ -6,7 +6,6 @@
#include "base/logging.h"
#include "base/values.h"
-#include "printing/print_dialog_gtk_interface.h"
#include "printing/print_job_constants.h"
#include "printing/print_settings_initializer_gtk.h"
#include "printing/units.h"
@@ -16,6 +15,7 @@
#else
#include <gtk/gtk.h>
#include <gtk/gtkprintunixdialog.h>
+#include "printing/print_dialog_gtk_interface.h"
#endif // defined(OS_CHROMEOS)
#if !defined(OS_CHROMEOS)
@@ -46,8 +46,10 @@ PrintingContextCairo::PrintingContextCairo(const std::string& app_locale)
PrintingContextCairo::~PrintingContextCairo() {
ReleaseContext();
+#if !defined(OS_CHROMEOS)
if (print_dialog_)
print_dialog_->ReleaseDialog();
+#endif
}
#if !defined(OS_CHROMEOS)