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 <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 2133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2144 }, | 2144 }, |
2145 | 2145 |
2146 { | 2146 { |
2147 "mark-non-secure-as", // FLAGS:RECORD_UMA | 2147 "mark-non-secure-as", // FLAGS:RECORD_UMA |
2148 IDS_MARK_NON_SECURE_AS_NAME, | 2148 IDS_MARK_NON_SECURE_AS_NAME, |
2149 IDS_MARK_NON_SECURE_AS_DESCRIPTION, | 2149 IDS_MARK_NON_SECURE_AS_DESCRIPTION, |
2150 kOsAll, | 2150 kOsAll, |
2151 MULTI_VALUE_TYPE(kMarkNonSecureAsChoices) | 2151 MULTI_VALUE_TYPE(kMarkNonSecureAsChoices) |
2152 }, | 2152 }, |
2153 | 2153 |
| 2154 { |
| 2155 "enable-site-per-process", |
| 2156 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_NAME, |
| 2157 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_DESCRIPTION, |
| 2158 kOsAll, |
| 2159 SINGLE_VALUE_TYPE(switches::kSitePerProcess) |
| 2160 }, |
| 2161 |
2154 // NOTE: Adding new command-line switches requires adding corresponding | 2162 // NOTE: Adding new command-line switches requires adding corresponding |
2155 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2163 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2156 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2164 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2157 }; | 2165 }; |
2158 | 2166 |
2159 const Experiment* experiments = kExperiments; | 2167 const Experiment* experiments = kExperiments; |
2160 size_t num_experiments = arraysize(kExperiments); | 2168 size_t num_experiments = arraysize(kExperiments); |
2161 | 2169 |
2162 // Stores and encapsulates the little state that about:flags has. | 2170 // Stores and encapsulates the little state that about:flags has. |
2163 class FlagsState { | 2171 class FlagsState { |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2722 } | 2730 } |
2723 | 2731 |
2724 const Experiment* GetExperiments(size_t* count) { | 2732 const Experiment* GetExperiments(size_t* count) { |
2725 *count = num_experiments; | 2733 *count = num_experiments; |
2726 return experiments; | 2734 return experiments; |
2727 } | 2735 } |
2728 | 2736 |
2729 } // namespace testing | 2737 } // namespace testing |
2730 | 2738 |
2731 } // namespace about_flags | 2739 } // namespace about_flags |
OLD | NEW |