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 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2183 kOsAll, | 2183 kOsAll, |
2184 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost) | 2184 SINGLE_VALUE_TYPE(switches::kAllowInsecureLocalhost) |
2185 }, | 2185 }, |
2186 { | 2186 { |
2187 "bypass-app-banner-engagement-checks", | 2187 "bypass-app-banner-engagement-checks", |
2188 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_NAME, | 2188 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_NAME, |
2189 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_DESCRIPTION, | 2189 IDS_FLAGS_BYPASS_APP_BANNER_ENGAGEMENT_CHECKS_DESCRIPTION, |
2190 kOsAndroid, | 2190 kOsAndroid, |
2191 SINGLE_VALUE_TYPE(switches::kBypassAppBannerEngagementChecks) | 2191 SINGLE_VALUE_TYPE(switches::kBypassAppBannerEngagementChecks) |
2192 }, | 2192 }, |
| 2193 { |
| 2194 "use-sync-sandbox", |
| 2195 IDS_FLAGS_SYNC_SANDBOX_NAME, |
| 2196 IDS_FLAGS_SYNC_SANDBOX_DESCRIPTION, |
| 2197 kOsAll, |
| 2198 SINGLE_VALUE_TYPE_AND_VALUE( |
| 2199 switches::kSyncServiceUrl, |
| 2200 "https://chrome-sync.sandbox.google.com/chrome-sync/alpha") |
| 2201 }, |
2193 | 2202 |
2194 // NOTE: Adding new command-line switches requires adding corresponding | 2203 // NOTE: Adding new command-line switches requires adding corresponding |
2195 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2204 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2196 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2205 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2197 }; | 2206 }; |
2198 | 2207 |
2199 const Experiment* experiments = kExperiments; | 2208 const Experiment* experiments = kExperiments; |
2200 size_t num_experiments = arraysize(kExperiments); | 2209 size_t num_experiments = arraysize(kExperiments); |
2201 | 2210 |
2202 // Stores and encapsulates the little state that about:flags has. | 2211 // Stores and encapsulates the little state that about:flags has. |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 } | 2795 } |
2787 | 2796 |
2788 const Experiment* GetExperiments(size_t* count) { | 2797 const Experiment* GetExperiments(size_t* count) { |
2789 *count = num_experiments; | 2798 *count = num_experiments; |
2790 return experiments; | 2799 return experiments; |
2791 } | 2800 } |
2792 | 2801 |
2793 } // namespace testing | 2802 } // namespace testing |
2794 | 2803 |
2795 } // namespace about_flags | 2804 } // namespace about_flags |
OLD | NEW |