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 #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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 #if defined(USE_AURA) | 90 #if defined(USE_AURA) |
91 const Experiment::Choice kAuraWindowModeChoices[] = { | 91 const Experiment::Choice kAuraWindowModeChoices[] = { |
92 { IDS_FLAGS_AURA_WINDOW_MODE_AUTOMATIC, "", "" }, | 92 { IDS_FLAGS_AURA_WINDOW_MODE_AUTOMATIC, "", "" }, |
93 { IDS_FLAGS_AURA_WINDOW_MODE_COMPACT, | 93 { IDS_FLAGS_AURA_WINDOW_MODE_COMPACT, |
94 ash::switches::kAuraWindowMode, | 94 ash::switches::kAuraWindowMode, |
95 ash::switches::kAuraWindowModeCompact }, | 95 ash::switches::kAuraWindowModeCompact }, |
96 { IDS_FLAGS_AURA_WINDOW_MODE_MANAGED, | 96 { IDS_FLAGS_AURA_WINDOW_MODE_MANAGED, |
97 ash::switches::kAuraWindowMode, | 97 ash::switches::kAuraWindowMode, |
98 ash::switches::kAuraWindowModeManaged }, | 98 ash::switches::kAuraWindowModeManaged }, |
99 { IDS_FLAGS_AURA_WINDOW_MODE_OVERLAPPING, | |
100 ash::switches::kAuraWindowMode, | |
101 ash::switches::kAuraWindowModeOverlapping }, | |
102 }; | 99 }; |
103 #endif | 100 #endif |
104 | 101 |
105 // RECORDING USER METRICS FOR FLAGS: | 102 // RECORDING USER METRICS FOR FLAGS: |
106 // ----------------------------------------------------------------------------- | 103 // ----------------------------------------------------------------------------- |
107 // The first line of the experiment is the internal name. If you'd like to | 104 // The first line of the experiment is the internal name. If you'd like to |
108 // gather statistics about the usage of your flag, you should append a marker | 105 // gather statistics about the usage of your flag, you should append a marker |
109 // comment to the end of the feature name, like so: | 106 // comment to the end of the feature name, like so: |
110 // "my-special-feature", // FLAGS:RECORD_UMA | 107 // "my-special-feature", // FLAGS:RECORD_UMA |
111 // | 108 // |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 } | 1046 } |
1050 | 1047 |
1051 const Experiment* GetExperiments(size_t* count) { | 1048 const Experiment* GetExperiments(size_t* count) { |
1052 *count = num_experiments; | 1049 *count = num_experiments; |
1053 return experiments; | 1050 return experiments; |
1054 } | 1051 } |
1055 | 1052 |
1056 } // namespace testing | 1053 } // namespace testing |
1057 | 1054 |
1058 } // namespace about_flags | 1055 } // namespace about_flags |
OLD | NEW |