#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/unexpire_flags.h"
#include "base/containers/contains.h"
#include "base/containers/flat_map.h"
#include "base/no_destructor.h"
#include "chrome/browser/expired_flags_list.h"
#include "chrome/browser/unexpire_flags_gen.h"
#include "chrome/common/chrome_version.h"
#include "components/flags_ui/flags_storage.h"
namespace flags {
namespace {
FlagNameToExpirationMap;
static FlagNameToExpirationMap* GetFlagExpirationOverrideMap() { … }
int ExpirationMilestoneForFlag(const char* flag) { … }
std::set<int> UnexpiredMilestonesFromStorage(
const flags_ui::FlagsStorage* storage) { … }
}
bool IsFlagExpired(const flags_ui::FlagsStorage* storage,
const char* internal_name) { … }
namespace testing {
void SetFlagExpiration(const std::string& name, int mstone) { … }
}
}