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 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2589 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, | 2589 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, |
2590 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, | 2590 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, |
2591 #endif // OS_CHROMEOS | 2591 #endif // OS_CHROMEOS |
2592 | 2592 |
2593 #if defined(OS_ANDROID) | 2593 #if defined(OS_ANDROID) |
2594 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, | 2594 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, |
2595 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, | 2595 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, |
2596 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, | 2596 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, |
2597 #endif | 2597 #endif |
2598 | 2598 |
| 2599 {"omnibox-display-title-for-current-url", |
| 2600 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlName, |
| 2601 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription, |
| 2602 kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)}, |
| 2603 |
2599 // NOTE: Adding new command-line switches requires adding corresponding | 2604 // NOTE: Adding new command-line switches requires adding corresponding |
2600 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2605 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2601 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2606 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2602 }; | 2607 }; |
2603 | 2608 |
2604 class FlagsStateSingleton { | 2609 class FlagsStateSingleton { |
2605 public: | 2610 public: |
2606 FlagsStateSingleton() | 2611 FlagsStateSingleton() |
2607 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2612 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2608 ~FlagsStateSingleton() {} | 2613 ~FlagsStateSingleton() {} |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2805 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2810 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2806 | 2811 |
2807 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2812 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2808 *count = arraysize(kFeatureEntries); | 2813 *count = arraysize(kFeatureEntries); |
2809 return kFeatureEntries; | 2814 return kFeatureEntries; |
2810 } | 2815 } |
2811 | 2816 |
2812 } // namespace testing | 2817 } // namespace testing |
2813 | 2818 |
2814 } // namespace about_flags | 2819 } // namespace about_flags |
OLD | NEW |