#include "chrome/browser/extensions/load_error_reporter.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/observer_list.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/simple_message_box.h"
#include "chrome/grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
namespace extensions {
LoadErrorReporter* LoadErrorReporter::instance_ = …;
void LoadErrorReporter::Init(bool enable_noisy_errors) { … }
LoadErrorReporter* LoadErrorReporter::GetInstance() { … }
LoadErrorReporter::LoadErrorReporter(bool enable_noisy_errors)
: … { … }
LoadErrorReporter::~LoadErrorReporter() { … }
void LoadErrorReporter::ReportLoadError(
const base::FilePath& extension_path,
const std::string& error,
content::BrowserContext* browser_context,
bool be_noisy) { … }
void LoadErrorReporter::ReportError(const std::u16string& message,
bool be_noisy) { … }
const std::vector<std::u16string>* LoadErrorReporter::GetErrors() { … }
void LoadErrorReporter::ClearErrors() { … }
void LoadErrorReporter::AddObserver(Observer* observer) { … }
void LoadErrorReporter::RemoveObserver(Observer* observer) { … }
}