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 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2991 {"mac-rtl", flag_descriptions::kMacRTLName, | 2991 {"mac-rtl", flag_descriptions::kMacRTLName, |
2992 flag_descriptions::kMacRTLDescription, kOsMac, | 2992 flag_descriptions::kMacRTLDescription, kOsMac, |
2993 FEATURE_VALUE_TYPE(features::kMacRTL)}, | 2993 FEATURE_VALUE_TYPE(features::kMacRTL)}, |
2994 #endif // defined(OS_MACOSX) | 2994 #endif // defined(OS_MACOSX) |
2995 | 2995 |
2996 #if defined(OS_CHROMEOS) | 2996 #if defined(OS_CHROMEOS) |
2997 {"disable-new-virtual-keyboard-behavior", | 2997 {"disable-new-virtual-keyboard-behavior", |
2998 flag_descriptions::kDisableNewVirtualKeyboardBehaviorName, | 2998 flag_descriptions::kDisableNewVirtualKeyboardBehaviorName, |
2999 flag_descriptions::kDisableNewVirtualKeyboardBehaviorDescription, kOsCrOS, | 2999 flag_descriptions::kDisableNewVirtualKeyboardBehaviorDescription, kOsCrOS, |
3000 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableNewVirtualKeyboardBehavior)}, | 3000 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableNewVirtualKeyboardBehavior)}, |
3001 #endif // defined(OS_CHROMEOS) | 3001 {"enable-per-user-timezone", flag_descriptions::kEnablePerUserTimezoneName, |
| 3002 flag_descriptions::kEnablePerUserTimezoneDescription, kOsCrOS, |
| 3003 SINGLE_DISABLE_VALUE_TYPE(chromeos::switches::kDisablePerUserTimezone)}, |
| 3004 #endif // OS_CHROMEOS |
3002 | 3005 |
3003 // NOTE: Adding new command-line switches requires adding corresponding | 3006 // NOTE: Adding new command-line switches requires adding corresponding |
3004 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in | 3007 // entries to enum "LoginCustomFlags" in histograms/enums.xml. See note in |
3005 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. | 3008 // enums.xml and don't forget to run AboutFlagsHistogramTest unit test. |
3006 }; | 3009 }; |
3007 | 3010 |
3008 class FlagsStateSingleton { | 3011 class FlagsStateSingleton { |
3009 public: | 3012 public: |
3010 FlagsStateSingleton() | 3013 FlagsStateSingleton() |
3011 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 3014 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3218 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 3221 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
3219 | 3222 |
3220 const FeatureEntry* GetFeatureEntries(size_t* count) { | 3223 const FeatureEntry* GetFeatureEntries(size_t* count) { |
3221 *count = arraysize(kFeatureEntries); | 3224 *count = arraysize(kFeatureEntries); |
3222 return kFeatureEntries; | 3225 return kFeatureEntries; |
3223 } | 3226 } |
3224 | 3227 |
3225 } // namespace testing | 3228 } // namespace testing |
3226 | 3229 |
3227 } // namespace about_flags | 3230 } // namespace about_flags |
OLD | NEW |