#include "chrome/browser/safe_browsing/incident_reporting/extension_data_collection.h"
#include "base/containers/contains.h"
#include "base/json/json_string_value_serializer.h"
#include "base/time/time.h"
#include "base/version.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/extensions/chrome_content_browser_client_extensions_part.h"
#include "chrome/browser/extensions/extension_util.h"
#include "chrome/browser/extensions/install_signer.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h"
#include "components/safe_browsing/core/common/proto/csd.pb.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_prefs_factory.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_factory.h"
#include "extensions/buildflags/buildflags.h"
#include "extensions/common/extension_set.h"
#include "extensions/common/manifest_constants.h"
namespace safe_browsing {
namespace {
void PopulateExtensionInfo(
const extensions::Extension& extension,
const extensions::ExtensionPrefs& extension_prefs,
const extensions::ExtensionRegistry& extension_registry,
ClientIncidentReport_ExtensionData_ExtensionInfo* extension_info) { … }
}
void CollectExtensionData(ClientIncidentReport_ExtensionData* data) { … }
}