#include "chrome/browser/printing/print_error_dialog.h"
#include <utility>
#include "base/auto_reset.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/no_destructor.h"
#include "build/build_config.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/grit/generated_resources.h"
#include "components/device_event_log/device_event_log.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "ui/base/l10n/l10n_util.h"
#if !BUILDFLAG(IS_ANDROID)
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#endif
namespace {
base::RepeatingClosure& GetErrorDialogOverride() { … }
void ShowPrintErrorDialogTask(const std::u16string& title,
const std::u16string& message) { … }
void ShowPrintErrorDialog(const std::u16string& title,
const std::u16string& message) { … }
}
void ShowPrintErrorDialogForInvalidPrinterError() { … }
void ShowPrintErrorDialogForGenericError() { … }
void SetShowPrintErrorDialogForTest(base::RepeatingClosure callback) { … }