#include "chrome/browser/enterprise/reporting/extension_info.h"
#include <string>
#include "base/ranges/algorithm.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/manifest_handlers/app_launch_info.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_set.h"
#include "extensions/common/manifest.h"
#include "extensions/common/manifest_handlers/permissions_parser.h"
#include "extensions/common/manifest_url_handlers.h"
#include "extensions/common/permissions/permissions_data.h"
ManifestLocation;
em;
namespace enterprise_reporting {
namespace {
em::Extension_InstallType GetExtensionInstallType(
ManifestLocation extension_location) { … }
void AddPermission(const extensions::Extension* extension,
em::Extension* extension_info) { … }
void AddHostPermission(const extensions::Extension* extension,
em::Extension* extension_info) { … }
void AddExtensions(const extensions::ExtensionSet& extensions,
em::ChromeUserProfileInfo* profile_info,
bool enabled) { … }
}
em::Extension_ExtensionType ConvertExtensionTypeToProto(
extensions::Manifest::Type extension_type) { … }
void AppendExtensionInfoIntoProfileReport(
Profile* profile,
em::ChromeUserProfileInfo* profile_info) { … }
}