#include "chrome/browser/extensions/omaha_attributes_handler.h"
#include <optional>
#include "base/metrics/histogram_functions.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/blocklist_extension_prefs.h"
#include "extensions/browser/blocklist_state.h"
namespace extensions {
namespace {
void ReportExtensionDisabledRemotely(bool should_be_remotely_disabled,
ExtensionUpdateCheckDataKey reason) { … }
void ReportNoUpdateCheckKeys() { … }
void ReportReenableExtension(ExtensionUpdateCheckDataKey reason) { … }
bool HasOmahaBlocklistStateInAttributes(const base::Value::Dict& attributes,
BitMapBlocklistState state) { … }
}
OmahaAttributesHandler::OmahaAttributesHandler(
ExtensionPrefs* extension_prefs,
ExtensionRegistry* registry,
ExtensionService* extension_service)
: … { … }
void OmahaAttributesHandler::PerformActionBasedOnOmahaAttributes(
const ExtensionId& extension_id,
const base::Value::Dict& attributes) { … }
void OmahaAttributesHandler::HandleMalwareOmahaAttribute(
const ExtensionId& extension_id,
const base::Value::Dict& attributes) { … }
void OmahaAttributesHandler::HandleGreylistOmahaAttribute(
const ExtensionId& extension_id,
const base::Value::Dict& attributes,
BitMapBlocklistState greylist_state,
ExtensionUpdateCheckDataKey reason) { … }
}