#include "components/user_education/webui/whats_new_registry.h"
#include "base/containers/contains.h"
#include "base/values.h"
#include "ui/webui/resources/js/browser_command/browser_command.mojom.h"
namespace whats_new {
namespace {
constexpr int kRequestEntropyLimit = …;
}
BrowserCommand;
bool WhatsNewModule::HasFeature() const { … }
bool WhatsNewModule::HasActiveFeature() const { … }
bool WhatsNewModule::HasRolledFeature() const { … }
bool WhatsNewModule::IsFeatureEnabled() const { … }
const char* WhatsNewModule::GetFeatureName() const { … }
WhatsNewEdition::WhatsNewEdition(const base::Feature& feature,
std::string owner,
std::vector<BrowserCommand> browser_commands)
: … { … }
WhatsNewEdition::WhatsNewEdition(WhatsNewEdition&& other) = default;
WhatsNewEdition::~WhatsNewEdition() = default;
bool WhatsNewEdition::HasActiveFeature() const { … }
bool WhatsNewEdition::IsFeatureEnabled() const { … }
const char* WhatsNewEdition::GetFeatureName() const { … }
void WhatsNewRegistry::RegisterModule(WhatsNewModule module) { … }
void WhatsNewRegistry::RegisterEdition(WhatsNewEdition edition) { … }
const std::vector<BrowserCommand> WhatsNewRegistry::GetActiveCommands() const { … }
const std::vector<std::string_view> WhatsNewRegistry::GetActiveFeatureNames()
const { … }
const std::vector<std::string_view> WhatsNewRegistry::GetRolledFeatureNames()
const { … }
void WhatsNewRegistry::SetEditionUsed(const std::string_view edition_name) { … }
void WhatsNewRegistry::ClearUnregisteredModules() { … }
void WhatsNewRegistry::ClearUnregisteredEditions() { … }
void WhatsNewRegistry::ResetData() { … }
WhatsNewRegistry::WhatsNewRegistry(
std::unique_ptr<WhatsNewStorageService> storage_service)
: … { … }
WhatsNewRegistry::~WhatsNewRegistry() = default;
}