| 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 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2445 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts) | 2445 SINGLE_VALUE_TYPE(switches::kTrySupportedChannelLayouts) |
| 2446 }, | 2446 }, |
| 2447 #endif | 2447 #endif |
| 2448 { | 2448 { |
| 2449 "emphasize-titles-in-omnibox-dropdown", | 2449 "emphasize-titles-in-omnibox-dropdown", |
| 2450 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME, | 2450 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_NAME, |
| 2451 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION, | 2451 IDS_FLAGS_EMPHASIZE_TITLES_IN_OMNIBOX_DROPDOWN_DESCRIPTION, |
| 2452 kOsAll, | 2452 kOsAll, |
| 2453 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown) | 2453 SINGLE_VALUE_TYPE(switches::kEmphasizeTitlesInOmniboxDropdown) |
| 2454 }, | 2454 }, |
| 2455 #if defined(ENABLE_WEBVR) |
| 2456 { |
| 2457 "enable-webvr", |
| 2458 IDS_FLAGS_ENABLE_WEBVR_NAME, |
| 2459 IDS_FLAGS_ENABLE_WEBVR_DESCRIPTION, |
| 2460 kOsAll, |
| 2461 SINGLE_VALUE_TYPE(switches::kEnableWebVR) |
| 2462 }, |
| 2463 #endif |
| 2455 // NOTE: Adding new command-line switches requires adding corresponding | 2464 // NOTE: Adding new command-line switches requires adding corresponding |
| 2456 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2465 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2457 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2466 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2458 }; | 2467 }; |
| 2459 | 2468 |
| 2460 const Experiment* experiments = kExperiments; | 2469 const Experiment* experiments = kExperiments; |
| 2461 size_t num_experiments = arraysize(kExperiments); | 2470 size_t num_experiments = arraysize(kExperiments); |
| 2462 | 2471 |
| 2463 // Stores and encapsulates the little state that about:flags has. | 2472 // Stores and encapsulates the little state that about:flags has. |
| 2464 class FlagsState { | 2473 class FlagsState { |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3033 } | 3042 } |
| 3034 | 3043 |
| 3035 const Experiment* GetExperiments(size_t* count) { | 3044 const Experiment* GetExperiments(size_t* count) { |
| 3036 *count = num_experiments; | 3045 *count = num_experiments; |
| 3037 return experiments; | 3046 return experiments; |
| 3038 } | 3047 } |
| 3039 | 3048 |
| 3040 } // namespace testing | 3049 } // namespace testing |
| 3041 | 3050 |
| 3042 } // namespace about_flags | 3051 } // namespace about_flags |
| OLD | NEW |