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 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2178 }, | 2178 }, |
2179 { | 2179 { |
2180 "use-sync-sandbox", | 2180 "use-sync-sandbox", |
2181 IDS_FLAGS_SYNC_SANDBOX_NAME, | 2181 IDS_FLAGS_SYNC_SANDBOX_NAME, |
2182 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION, | 2182 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION, |
2183 kOsAll, | 2183 kOsAll, |
2184 SINGLE_VALUE_TYPE_AND_VALUE( | 2184 SINGLE_VALUE_TYPE_AND_VALUE( |
2185 switches::kSyncServiceURL, | 2185 switches::kSyncServiceURL, |
2186 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha") | 2186 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha") |
2187 }, | 2187 }, |
| 2188 #if defined(OS_CHROMEOS) |
| 2189 { |
| 2190 "enable-datasaver-prompt", |
| 2191 IDS_FLAGS_ENABLE_DATASAVER_PROMPT_NAME, |
| 2192 IDS_FLAGS_ENABLE_DATASAVER_PROMPT_DESCRIPTION, |
| 2193 kOsCrOS, |
| 2194 SINGLE_VALUE_TYPE(chromeos::switches::kEnableDataSaverPrompt) |
| 2195 }, |
| 2196 #endif // defined(OS_CHROMEOS) |
2188 | 2197 |
2189 // NOTE: Adding new command-line switches requires adding corresponding | 2198 // NOTE: Adding new command-line switches requires adding corresponding |
2190 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2199 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2191 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2200 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2192 }; | 2201 }; |
2193 | 2202 |
2194 const Experiment* experiments = kExperiments; | 2203 const Experiment* experiments = kExperiments; |
2195 size_t num_experiments = arraysize(kExperiments); | 2204 size_t num_experiments = arraysize(kExperiments); |
2196 | 2205 |
2197 // Stores and encapsulates the little state that about:flags has. | 2206 // Stores and encapsulates the little state that about:flags has. |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2781 } | 2790 } |
2782 | 2791 |
2783 const Experiment* GetExperiments(size_t* count) { | 2792 const Experiment* GetExperiments(size_t* count) { |
2784 *count = num_experiments; | 2793 *count = num_experiments; |
2785 return experiments; | 2794 return experiments; |
2786 } | 2795 } |
2787 | 2796 |
2788 } // namespace testing | 2797 } // namespace testing |
2789 | 2798 |
2790 } // namespace about_flags | 2799 } // namespace about_flags |
OLD | NEW |