| 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 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2349 predictors::kSpeculativeResourcePrefetchingFeature, | 2349 predictors::kSpeculativeResourcePrefetchingFeature, |
| 2350 kSpeculativeResourcePrefetchingFeatureVariations, | 2350 kSpeculativeResourcePrefetchingFeatureVariations, |
| 2351 "SpeculativeResourcePrefetchingValidation")}, | 2351 "SpeculativeResourcePrefetchingValidation")}, |
| 2352 | 2352 |
| 2353 #if defined(OS_MACOSX) | 2353 #if defined(OS_MACOSX) |
| 2354 {"tab-strip-keyboard-focus", IDS_FLAGS_TAB_STRIP_KEYBOARD_FOCUS_NAME, | 2354 {"tab-strip-keyboard-focus", IDS_FLAGS_TAB_STRIP_KEYBOARD_FOCUS_NAME, |
| 2355 IDS_FLAGS_TAB_STRIP_KEYBOARD_FOCUS_DESCRIPTION, kOsMac, | 2355 IDS_FLAGS_TAB_STRIP_KEYBOARD_FOCUS_DESCRIPTION, kOsMac, |
| 2356 FEATURE_VALUE_TYPE(features::kTabStripKeyboardFocus)} | 2356 FEATURE_VALUE_TYPE(features::kTabStripKeyboardFocus)} |
| 2357 #endif | 2357 #endif |
| 2358 | 2358 |
| 2359 #if defined(OS_CHROMEOS) |
| 2360 {"enable-chromevox-arc-support", |
| 2361 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_NAME, |
| 2362 IDS_FLAGS_ENABLE_CHROMEVOX_ARC_SUPPORT_DESCRIPTION, kOsCrOS, |
| 2363 SINGLE_VALUE_TYPE(chromeos::switches::kEnableChromeVoxArcSupport)}, |
| 2364 #endif // defined(OS_CHROMEOS) |
| 2365 |
| 2359 // NOTE: Adding new command-line switches requires adding corresponding | 2366 // NOTE: Adding new command-line switches requires adding corresponding |
| 2360 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2367 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2361 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2368 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2362 }; | 2369 }; |
| 2363 | 2370 |
| 2364 class FlagsStateSingleton { | 2371 class FlagsStateSingleton { |
| 2365 public: | 2372 public: |
| 2366 FlagsStateSingleton() | 2373 FlagsStateSingleton() |
| 2367 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2374 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2368 ~FlagsStateSingleton() {} | 2375 ~FlagsStateSingleton() {} |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2557 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2564 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2558 | 2565 |
| 2559 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2566 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2560 *count = arraysize(kFeatureEntries); | 2567 *count = arraysize(kFeatureEntries); |
| 2561 return kFeatureEntries; | 2568 return kFeatureEntries; |
| 2562 } | 2569 } |
| 2563 | 2570 |
| 2564 } // namespace testing | 2571 } // namespace testing |
| 2565 | 2572 |
| 2566 } // namespace about_flags | 2573 } // namespace about_flags |
| OLD | NEW |