| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_ABOUT_FLAGS_H_ | 5 #ifndef CHROME_BROWSER_ABOUT_FLAGS_H_ |
| 6 #define CHROME_BROWSER_ABOUT_FLAGS_H_ | 6 #define CHROME_BROWSER_ABOUT_FLAGS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 const Choice* choices; | 95 const Choice* choices; |
| 96 | 96 |
| 97 // Number of |choices|. | 97 // Number of |choices|. |
| 98 // This is used if type is MULTI_VALUE. | 98 // This is used if type is MULTI_VALUE. |
| 99 int num_choices; | 99 int num_choices; |
| 100 | 100 |
| 101 // Returns the name used in prefs for the choice at the specified |index|. | 101 // Returns the name used in prefs for the choice at the specified |index|. |
| 102 std::string NameForChoice(int index) const; | 102 std::string NameForChoice(int index) const; |
| 103 | 103 |
| 104 // Returns the human readable description for the choice at |index|. | 104 // Returns the human readable description for the choice at |index|. |
| 105 string16 DescriptionForChoice(int index) const; | 105 base::string16 DescriptionForChoice(int index) const; |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 // A flag controlling the behavior of the |ConvertFlagsToSwitches| function - | 108 // A flag controlling the behavior of the |ConvertFlagsToSwitches| function - |
| 109 // whether it should add the sentinel switches around flags. | 109 // whether it should add the sentinel switches around flags. |
| 110 enum SentinelsMode { kNoSentinels, kAddSentinels }; | 110 enum SentinelsMode { kNoSentinels, kAddSentinels }; |
| 111 | 111 |
| 112 // Reads the Labs |prefs| (called "Labs" for historical reasons) and adds the | 112 // Reads the Labs |prefs| (called "Labs" for historical reasons) and adds the |
| 113 // commandline flags belonging to the active experiments to |command_line|. | 113 // commandline flags belonging to the active experiments to |command_line|. |
| 114 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, | 114 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, |
| 115 CommandLine* command_line, | 115 CommandLine* command_line, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 // Separator used for multi values. Multi values are represented in prefs as | 174 // Separator used for multi values. Multi values are represented in prefs as |
| 175 // name-of-experiment + kMultiSeparator + selected_index. | 175 // name-of-experiment + kMultiSeparator + selected_index. |
| 176 extern const char kMultiSeparator[]; | 176 extern const char kMultiSeparator[]; |
| 177 | 177 |
| 178 } // namespace testing | 178 } // namespace testing |
| 179 | 179 |
| 180 } // namespace about_flags | 180 } // namespace about_flags |
| 181 | 181 |
| 182 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ | 182 #endif // CHROME_BROWSER_ABOUT_FLAGS_H_ |
| OLD | NEW |