OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 5 #ifndef IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
6 #define IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 6 #define IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 // This file can be empty. Its purpose is to contain the relatively short lived | 10 // This file can be empty. Its purpose is to contain the relatively short lived |
(...skipping 22 matching lines...) Expand all Loading... |
33 bool IsWKWebViewEnabled(); | 33 bool IsWKWebViewEnabled(); |
34 | 34 |
35 // Whether the user would be put into a control group for the WKWebView | 35 // Whether the user would be put into a control group for the WKWebView |
36 // experiment assuming they were eligible. Calling this will *not* activate a | 36 // experiment assuming they were eligible. Calling this will *not* activate a |
37 // trial, so is safe to call without checking eligibility. | 37 // trial, so is safe to call without checking eligibility. |
38 bool IsTargetedToWKWebViewExperimentControlGroup(); | 38 bool IsTargetedToWKWebViewExperimentControlGroup(); |
39 | 39 |
40 // Whether the user is part of a control group for the WKWebView experiment. | 40 // Whether the user is part of a control group for the WKWebView experiment. |
41 bool IsInWKWebViewExperimentControlGroup(); | 41 bool IsInWKWebViewExperimentControlGroup(); |
42 | 42 |
43 // Returns a string containing extra params that should be sent along with | |
44 // omnibox search requests. The returned value contains a leading "&". | |
45 std::string GetWKWebViewSearchParams(); | |
46 | |
47 // Whether viewing and copying passwords is enabled. | 43 // Whether viewing and copying passwords is enabled. |
48 bool IsViewCopyPasswordsEnabled(); | 44 bool IsViewCopyPasswordsEnabled(); |
49 | 45 |
50 // Whether password generation is enabled. | 46 // Whether password generation is enabled. |
51 bool IsPasswordGenerationEnabled(); | 47 bool IsPasswordGenerationEnabled(); |
52 | 48 |
53 // Whether password generation fields are determined using local heuristics | 49 // Whether password generation fields are determined using local heuristics |
54 // only. | 50 // only. |
55 bool UseOnlyLocalHeuristicsForPasswordGeneration(); | 51 bool UseOnlyLocalHeuristicsForPasswordGeneration(); |
56 | 52 |
57 // Whether the Tab Switcher is enabled for iPad or not. | 53 // Whether the Tab Switcher is enabled for iPad or not. |
58 bool IsTabSwitcherEnabled(); | 54 bool IsTabSwitcherEnabled(); |
59 | 55 |
60 } // namespace experimental_flags | 56 } // namespace experimental_flags |
61 | 57 |
62 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ | 58 #endif // IOS_CHROME_BROWSER_EXPERIMENTAL_FLAGS_H_ |
OLD | NEW |