| 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 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2874 | 2874 |
| 2875 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, | 2875 {"enable-location-hard-reload", flag_descriptions::kLocationHardReloadName, |
| 2876 flag_descriptions::kLocationHardReloadDescription, kOsAll, | 2876 flag_descriptions::kLocationHardReloadDescription, kOsAll, |
| 2877 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, | 2877 FEATURE_VALUE_TYPE(features::kLocationHardReload)}, |
| 2878 | 2878 |
| 2879 {"capture-thumbnail-on-load-finished", | 2879 {"capture-thumbnail-on-load-finished", |
| 2880 flag_descriptions::kCaptureThumbnailOnLoadFinishedName, | 2880 flag_descriptions::kCaptureThumbnailOnLoadFinishedName, |
| 2881 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop, | 2881 flag_descriptions::kCaptureThumbnailOnLoadFinishedDescription, kOsDesktop, |
| 2882 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)}, | 2882 FEATURE_VALUE_TYPE(features::kCaptureThumbnailOnLoadFinished)}, |
| 2883 | 2883 |
| 2884 #if defined(OS_WIN) |
| 2885 {"enable-d3d-vsync", flag_descriptions::kEnableD3DVsync, |
| 2886 flag_descriptions::kEnableD3DVsyncDescription, kOsWin, |
| 2887 FEATURE_VALUE_TYPE(features::kD3DVsync)}, |
| 2888 #endif // defined(OS_WIN) |
| 2889 |
| 2884 // NOTE: Adding new command-line switches requires adding corresponding | 2890 // NOTE: Adding new command-line switches requires adding corresponding |
| 2885 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in | 2891 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in |
| 2886 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2892 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2887 }; | 2893 }; |
| 2888 | 2894 |
| 2889 class FlagsStateSingleton { | 2895 class FlagsStateSingleton { |
| 2890 public: | 2896 public: |
| 2891 FlagsStateSingleton() | 2897 FlagsStateSingleton() |
| 2892 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2898 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2893 ~FlagsStateSingleton() {} | 2899 ~FlagsStateSingleton() {} |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3099 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3105 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 3100 | 3106 |
| 3101 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3107 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 3102 *count = arraysize(kFeatureEntries); | 3108 *count = arraysize(kFeatureEntries); |
| 3103 return kFeatureEntries; | 3109 return kFeatureEntries; |
| 3104 } | 3110 } |
| 3105 | 3111 |
| 3106 } // namespace testing | 3112 } // namespace testing |
| 3107 | 3113 |
| 3108 } // namespace about_flags | 3114 } // namespace about_flags |
| OLD | NEW |