mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Fix crash when canceling the print dialog (issue #2341)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#define LIBCEF_BROWSER_PRINTING_PRINT_DIALOG_LINUX_H_
|
||||
|
||||
#include "include/cef_print_handler.h"
|
||||
#include "libcef/browser/browser_host_impl.h"
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/files/file_path.h"
|
||||
@@ -19,7 +20,7 @@
|
||||
namespace printing {
|
||||
class MetafilePlayer;
|
||||
class PrintSettings;
|
||||
}
|
||||
} // namespace printing
|
||||
|
||||
using printing::PrintingContextLinux;
|
||||
|
||||
@@ -84,6 +85,7 @@ class CefPrintDialogLinux : public printing::PrintDialogGtkInterface,
|
||||
// Printing dialog callback.
|
||||
PrintingContextLinux::PrintSettingsCallback callback_;
|
||||
PrintingContextLinux* context_;
|
||||
CefRefPtr<CefBrowserHostImpl> browser_;
|
||||
|
||||
base::FilePath path_to_pdf_;
|
||||
|
||||
|
Reference in New Issue
Block a user