Commit a5cd9b23 authored by thestig@chromium.org's avatar thestig@chromium.org

Linux Printing: Add a CHECK to help track down a crash.

BUG=70166
TEST=none
Review URL: http://codereview.chromium.org/6287005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71862 0039d316-1c4b-4281-b951-d872f2087c98
parent d6429593
...@@ -125,6 +125,8 @@ void PrintDialogGtk::OnResponse(GtkWidget* dialog, gint response_id) { ...@@ -125,6 +125,8 @@ void PrintDialogGtk::OnResponse(GtkWidget* dialog, gint response_id) {
GtkPrinter* printer = GtkPrinter* printer =
gtk_print_unix_dialog_get_selected_printer( gtk_print_unix_dialog_get_selected_printer(
GTK_PRINT_UNIX_DIALOG(dialog_)); GTK_PRINT_UNIX_DIALOG(dialog_));
// Attempt to track down bug 70166.
CHECK(printer != NULL);
if (!gtk_printer_accepts_pdf(printer)) { if (!gtk_printer_accepts_pdf(printer)) {
browser_->GetSelectedTabContents()->AddInfoBar( browser_->GetSelectedTabContents()->AddInfoBar(
new PdfUnsupportedInfoBarDelegate(browser_)); new PdfUnsupportedInfoBarDelegate(browser_));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment