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 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2658 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, | 2658 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, |
2659 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, | 2659 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, |
2660 #endif // OS_CHROMEOS | 2660 #endif // OS_CHROMEOS |
2661 | 2661 |
2662 #if defined(OS_ANDROID) | 2662 #if defined(OS_ANDROID) |
2663 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, | 2663 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, |
2664 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, | 2664 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, |
2665 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, | 2665 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, |
2666 #endif | 2666 #endif |
2667 | 2667 |
| 2668 {"omnibox-display-title-for-current-url", |
| 2669 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlName, |
| 2670 flag_descriptions::kOmniboxDisplayTitleForCurrentUrlDescription, |
| 2671 kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kDisplayTitleForCurrentUrl)}, |
| 2672 |
2668 // NOTE: Adding new command-line switches requires adding corresponding | 2673 // NOTE: Adding new command-line switches requires adding corresponding |
2669 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2674 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2670 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2675 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2671 }; | 2676 }; |
2672 | 2677 |
2673 class FlagsStateSingleton { | 2678 class FlagsStateSingleton { |
2674 public: | 2679 public: |
2675 FlagsStateSingleton() | 2680 FlagsStateSingleton() |
2676 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2681 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2677 ~FlagsStateSingleton() {} | 2682 ~FlagsStateSingleton() {} |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2874 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2879 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2875 | 2880 |
2876 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2881 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2877 *count = arraysize(kFeatureEntries); | 2882 *count = arraysize(kFeatureEntries); |
2878 return kFeatureEntries; | 2883 return kFeatureEntries; |
2879 } | 2884 } |
2880 | 2885 |
2881 } // namespace testing | 2886 } // namespace testing |
2882 | 2887 |
2883 } // namespace about_flags | 2888 } // namespace about_flags |
OLD | NEW |