#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/enterprise/reporting/extension_request/extension_request_observer.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "extensions/common/extension_urls.h"
namespace enterprise_reporting {
namespace {
constexpr char kPendingListUpdateMetricsName[] = …;
enum class PendlingListUpdateMetricEvent { … };
}
ExtensionRequestObserver::ExtensionRequestObserver(Profile* profile)
: … { … }
ExtensionRequestObserver::~ExtensionRequestObserver() { … }
bool ExtensionRequestObserver::IsReportEnabled() { … }
void ExtensionRequestObserver::EnableReport(ReportTrigger trigger) { … }
void ExtensionRequestObserver::DisableReport() { … }
void ExtensionRequestObserver::OnExtensionManagementSettingsChanged() { … }
void ExtensionRequestObserver::OnPendingListChanged() { … }
void ExtensionRequestObserver::ShowAllNotifications() { … }
void ExtensionRequestObserver::ShowNotification(
ExtensionRequestNotification::NotifyType type) { … }
void ExtensionRequestObserver::CloseAllNotifications() { … }
void ExtensionRequestObserver::OnNotificationClosed(
std::vector<std::string>&& extension_ids,
bool by_user) { … }
void ExtensionRequestObserver::RemoveExtensionsFromPendingList(
const std::vector<std::string>& extension_ids) { … }
}