Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2019 The Chromium Authors |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 2 | // 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 Drissman | 9269d4ed | 2023-01-07 01:38:06 | [diff] [blame] | 9 | #include "base/functional/callback.h" |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 10 | |
Elly Fong-Jones | f8a4aa4 | 2020-08-04 15:53:30 | [diff] [blame] | 11 | namespace flags_ui { |
| 12 | class FlagsStorage; |
| 13 | } // namespace flags_ui |
| 14 | |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 15 | namespace flags { |
| 16 | |
Elly Fong-Jones | f8a4aa4 | 2020-08-04 15:53:30 | [diff] [blame] | 17 | bool IsFlagExpired(const flags_ui::FlagsStorage* storage, |
| 18 | const char* internal_name); |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 19 | |
Elly Fong-Jones | 5c9f94e | 2019-10-24 13:55:06 | [diff] [blame] | 20 | namespace testing { |
| 21 | |
Elly Fong-Jones | 11c628ce | 2020-07-23 17:04:01 | [diff] [blame] | 22 | // 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. |
| 25 | void SetFlagExpiration(const std::string& name, int mstone); |
Elly Fong-Jones | 5c9f94e | 2019-10-24 13:55:06 | [diff] [blame] | 26 | |
| 27 | } // namespace testing |
| 28 | |
Elly Fong-Jones | 99d8cdad | 2019-08-27 15:48:45 | [diff] [blame] | 29 | } // namespace flags |
| 30 | |
| 31 | #endif // CHROME_BROWSER_UNEXPIRE_FLAGS_H_ |