OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // macro for this type supplying the command line to the macro. | 74 // macro for this type supplying the command line to the macro. |
75 // . MULTI_VALUE: a list of choices, the first of which should correspond to a | 75 // . MULTI_VALUE: a list of choices, the first of which should correspond to a |
76 // deactivated state for this lab (i.e. no command line option). To specify | 76 // deactivated state for this lab (i.e. no command line option). To specify |
77 // this type of experiment use the macro MULTI_VALUE_TYPE supplying it the | 77 // this type of experiment use the macro MULTI_VALUE_TYPE supplying it the |
78 // array of choices. | 78 // array of choices. |
79 // See the documentation of Experiment for details on the fields. | 79 // See the documentation of Experiment for details on the fields. |
80 // | 80 // |
81 // When adding a new choice, add it to the end of the list. | 81 // When adding a new choice, add it to the end of the list. |
82 const Experiment kExperiments[] = { | 82 const Experiment kExperiments[] = { |
83 { | 83 { |
| 84 "expose-for-tabs", // FLAGS:RECORD_UMA |
| 85 IDS_FLAGS_TABPOSE_NAME, |
| 86 IDS_FLAGS_TABPOSE_DESCRIPTION, |
| 87 kOsMac, |
| 88 #if defined(OS_MACOSX) |
| 89 // The switch exists only on OS X. |
| 90 SINGLE_VALUE_TYPE(switches::kEnableExposeForTabs) |
| 91 #else |
| 92 SINGLE_VALUE_TYPE("") |
| 93 #endif |
| 94 }, |
| 95 { |
84 kMediaPlayerExperimentName, | 96 kMediaPlayerExperimentName, |
85 IDS_FLAGS_MEDIA_PLAYER_NAME, | 97 IDS_FLAGS_MEDIA_PLAYER_NAME, |
86 IDS_FLAGS_MEDIA_PLAYER_DESCRIPTION, | 98 IDS_FLAGS_MEDIA_PLAYER_DESCRIPTION, |
87 kOsCrOS, | 99 kOsCrOS, |
88 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
89 // The switch exists only on Chrome OS. | 101 // The switch exists only on Chrome OS. |
90 SINGLE_VALUE_TYPE(switches::kEnableMediaPlayer) | 102 SINGLE_VALUE_TYPE(switches::kEnableMediaPlayer) |
91 #else | 103 #else |
92 SINGLE_VALUE_TYPE("") | 104 SINGLE_VALUE_TYPE("") |
93 #endif | 105 #endif |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 } | 719 } |
708 | 720 |
709 const Experiment* GetExperiments(size_t* count) { | 721 const Experiment* GetExperiments(size_t* count) { |
710 *count = num_experiments; | 722 *count = num_experiments; |
711 return experiments; | 723 return experiments; |
712 } | 724 } |
713 | 725 |
714 } // namespace testing | 726 } // namespace testing |
715 | 727 |
716 } // namespace about_flags | 728 } // namespace about_flags |
OLD | NEW |