#include "extensions/common/constants.h"
#include <string_view>
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_set.h"
#include "build/build_config.h"
#include "build/chromecast_buildflags.h"
#include "build/chromeos_buildflags.h"
namespace extensions {
const uint8_t kWebstoreSignaturesPublicKey[] = …;
const size_t kWebstoreSignaturesPublicKeySize = …;
}
namespace extension_misc {
#if BUILDFLAG(IS_CHROMEOS)
constexpr char kStagingAttractLoopAppId[] = "aefaeciooibphdopnjjmgjdlckdcfbae";
constexpr char kStagingHighlightsAppId[] = "glochkamldfopmdlegmcnjmgkopfiplb";
constexpr char kBlazeyAttractLoopAppId[] = "lceekekmpiieklnpocjfahfakahjkhha";
constexpr char kBlazeyHighlightsAppId[] = "jbpnmbcpgemgfblnjfhnmlffhkofekmf";
bool IsDemoModeChromeApp(std::string_view extension_id) {
constexpr auto kDemoModeApps = base::MakeFixedFlatSet<std::string_view>({
kHighlightsAppId,
kScreensaverAppId,
kStagingAttractLoopAppId,
kStagingHighlightsAppId,
kNewAttractLoopAppId,
kNewHighlightsAppId,
kBlazeyAttractLoopAppId,
kBlazeyHighlightsAppId
});
return base::Contains(kDemoModeApps, extension_id);
}
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
bool IsSystemUIApp(std::string_view extension_id) {
constexpr auto kApps = base::MakeFixedFlatSet<std::string_view>({
kChromeVoxExtensionId,
kFilesManagerAppId,
kHighlightsAppId,
kScreensaverAppId,
});
return base::Contains(kApps, extension_id);
}
#endif
bool IsQuickOfficeExtension(std::string_view extension_id) { … }
bool IsPreinstalledAppId(std::string_view app_id) { … }
}