blob: 4d7207d84e3ddafd5b7b8785a862873463bfaa5f [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2019 The Chromium Authors
Elly Fong-Jones99d8cdad2019-08-27 15:48:452// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_UNEXPIRE_FLAGS_H_
6#define CHROME_BROWSER_UNEXPIRE_FLAGS_H_
7
8#include "base/feature_list.h"
Avi Drissman9269d4ed2023-01-07 01:38:069#include "base/functional/callback.h"
Elly Fong-Jones99d8cdad2019-08-27 15:48:4510
Elly Fong-Jonesf8a4aa42020-08-04 15:53:3011namespace flags_ui {
12class FlagsStorage;
13} // namespace flags_ui
14
Elly Fong-Jones99d8cdad2019-08-27 15:48:4515namespace flags {
16
Elly Fong-Jonesf8a4aa42020-08-04 15:53:3017bool IsFlagExpired(const flags_ui::FlagsStorage* storage,
18 const char* internal_name);
Elly Fong-Jones99d8cdad2019-08-27 15:48:4519
Elly Fong-Jones5c9f94e2019-10-24 13:55:0620namespace testing {
21
Elly Fong-Jones11c628ce2020-07-23 17:04:0122// Overrides the expiration milestone for a named flag. Useful for tests that
23// need to expire a flag that doesn't normally appear in the generated
24// expiration table.
25void SetFlagExpiration(const std::string& name, int mstone);
Elly Fong-Jones5c9f94e2019-10-24 13:55:0626
27} // namespace testing
28
Elly Fong-Jones99d8cdad2019-08-27 15:48:4529} // namespace flags
30
31#endif // CHROME_BROWSER_UNEXPIRE_FLAGS_H_