[M120 Migration]Fix for crash during chrome exit
[platform/framework/web/chromium-efl.git] / chrome / browser / unexpire_flags.h
1 // Copyright 2019 The Chromium Authors
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"
9 #include "base/functional/callback.h"
10
11 namespace flags_ui {
12 class FlagsStorage;
13 }  // namespace flags_ui
14
15 namespace flags {
16
17 bool IsFlagExpired(const flags_ui::FlagsStorage* storage,
18                    const char* internal_name);
19
20 namespace testing {
21
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);
26
27 }  // namespace testing
28
29 }  // namespace flags
30
31 #endif  // CHROME_BROWSER_UNEXPIRE_FLAGS_H_