#include "chrome/browser/web_applications/extension_status_utils.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/one_shot_event.h"
#include "base/strings/string_split.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_management.h"
#include "chrome/browser/extensions/preinstalled_apps.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_features.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/management_policy.h"
#include "extensions/browser/pref_names.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
namespace {
const char* g_preinstalled_app_for_testing = …;
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
const char kDefaultAllowedExtensionIds[] = …;
BASE_FEATURE(…);
base::FeatureParam<std::string> kChromeAppAllowlist{ … };
#endif
}
namespace extensions {
namespace testing {
bool g_enable_chrome_apps_for_testing = …;
}
bool IsExtensionBlockedByPolicy(content::BrowserContext* context,
const std::string& extension_id) { … }
bool IsExtensionInstalled(content::BrowserContext* context,
const std::string& extension_id) { … }
bool IsExtensionForceInstalled(content::BrowserContext* context,
const std::string& extension_id,
std::u16string* reason) { … }
bool IsExtensionDefaultInstalled(content::BrowserContext* context,
const std::string& extension_id) { … }
bool IsExternalExtensionUninstalled(content::BrowserContext* context,
const std::string& extension_id) { … }
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
bool IsExtensionUnsupportedDeprecatedApp(content::BrowserContext* context,
const std::string& extension_id) { … }
#endif
void OnExtensionSystemReady(content::BrowserContext* context,
base::OnceClosure callback) { … }
bool DidPreinstalledAppsPerformNewInstallation(Profile* profile) { … }
bool IsPreinstalledAppId(const std::string& app_id) { … }
void SetPreinstalledAppIdForTesting(const char* app_id) { … }
}