| 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 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2102 {"media-remoting-encrypted", IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_NAME, | 2102 {"media-remoting-encrypted", IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_NAME, |
| 2103 IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_DESCRIPTION, kOsDesktop, | 2103 IDS_FLAGS_MEDIA_REMOTING_ENCRYPTED_DESCRIPTION, kOsDesktop, |
| 2104 FEATURE_VALUE_TYPE(features::kMediaRemotingEncrypted)}, | 2104 FEATURE_VALUE_TYPE(features::kMediaRemotingEncrypted)}, |
| 2105 #endif | 2105 #endif |
| 2106 #if defined(OS_ANDROID) | 2106 #if defined(OS_ANDROID) |
| 2107 {"video-fullscreen-orientation-lock", | 2107 {"video-fullscreen-orientation-lock", |
| 2108 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME, | 2108 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_NAME, |
| 2109 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid, | 2109 IDS_FLAGS_VIDEO_FULLSCREEN_ORIENTATION_LOCK_DESCRIPTION, kOsAndroid, |
| 2110 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)}, | 2110 FEATURE_VALUE_TYPE(media::kVideoFullscreenOrientationLock)}, |
| 2111 #endif | 2111 #endif |
| 2112 #if defined(OS_CHROMEOS) |
| 2113 {"cros-comp-updates", IDS_FLAGS_CROS_COMP_UPDATES_NAME, |
| 2114 IDS_FLAGS_CROS_COMP_UPDATES_DESCRIPTION, kOsCrOS, |
| 2115 FEATURE_VALUE_TYPE(features::kCrosCompUpdates)}, |
| 2116 {"component-flash-only", IDS_FLAGS_COMPONENT_FLASH_ONLY_NAME, |
| 2117 IDS_FLAGS_COMPONENT_FLASH_ONLY_DESCRIPTION, kOsCrOS, |
| 2118 FEATURE_VALUE_TYPE(features::kComponentFlashOnly)}, |
| 2119 #endif |
| 2112 | 2120 |
| 2113 // NOTE: Adding new command-line switches requires adding corresponding | 2121 // NOTE: Adding new command-line switches requires adding corresponding |
| 2114 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2122 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2115 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2123 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2116 }; | 2124 }; |
| 2117 | 2125 |
| 2118 class FlagsStateSingleton { | 2126 class FlagsStateSingleton { |
| 2119 public: | 2127 public: |
| 2120 FlagsStateSingleton() | 2128 FlagsStateSingleton() |
| 2121 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2129 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2311 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2319 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2312 | 2320 |
| 2313 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2321 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2314 *count = arraysize(kFeatureEntries); | 2322 *count = arraysize(kFeatureEntries); |
| 2315 return kFeatureEntries; | 2323 return kFeatureEntries; |
| 2316 } | 2324 } |
| 2317 | 2325 |
| 2318 } // namespace testing | 2326 } // namespace testing |
| 2319 | 2327 |
| 2320 } // namespace about_flags | 2328 } // namespace about_flags |
| OLD | NEW |