| 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 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1865 MULTI_VALUE_TYPE(kProgressBarCompletionChoices)}, | 1865 MULTI_VALUE_TYPE(kProgressBarCompletionChoices)}, |
| 1866 #endif // OS_ANDROID | 1866 #endif // OS_ANDROID |
| 1867 #if defined(OS_ANDROID) | 1867 #if defined(OS_ANDROID) |
| 1868 {"offline-bookmarks", flag_descriptions::kOfflineBookmarksName, | 1868 {"offline-bookmarks", flag_descriptions::kOfflineBookmarksName, |
| 1869 flag_descriptions::kOfflineBookmarksDescription, kOsAndroid, | 1869 flag_descriptions::kOfflineBookmarksDescription, kOsAndroid, |
| 1870 FEATURE_VALUE_TYPE(offline_pages::kOfflineBookmarksFeature)}, | 1870 FEATURE_VALUE_TYPE(offline_pages::kOfflineBookmarksFeature)}, |
| 1871 {"offline-pages-async-download", | 1871 {"offline-pages-async-download", |
| 1872 flag_descriptions::kOfflinePagesAsyncDownloadName, | 1872 flag_descriptions::kOfflinePagesAsyncDownloadName, |
| 1873 flag_descriptions::kOfflinePagesAsyncDownloadDescription, kOsAndroid, | 1873 flag_descriptions::kOfflinePagesAsyncDownloadDescription, kOsAndroid, |
| 1874 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesAsyncDownloadFeature)}, | 1874 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesAsyncDownloadFeature)}, |
| 1875 {"offline-pages-load-signal-collecting", |
| 1876 flag_descriptions::kOfflinePagesLoadSignalCollectingName, |
| 1877 flag_descriptions::kOfflinePagesLoadSignalCollectingDescription, |
| 1878 kOsAndroid, |
| 1879 FEATURE_VALUE_TYPE( |
| 1880 offline_pages::kOfflinePagesLoadSignalCollectingFeature)}, |
| 1875 {"offline-pages-sharing", flag_descriptions::kOfflinePagesSharingName, | 1881 {"offline-pages-sharing", flag_descriptions::kOfflinePagesSharingName, |
| 1876 flag_descriptions::kOfflinePagesSharingDescription, kOsAndroid, | 1882 flag_descriptions::kOfflinePagesSharingDescription, kOsAndroid, |
| 1877 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesSharingFeature)}, | 1883 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesSharingFeature)}, |
| 1878 {"offline-pages-prefetching", | 1884 {"offline-pages-prefetching", |
| 1879 flag_descriptions::kOfflinePagesPrefetchingName, | 1885 flag_descriptions::kOfflinePagesPrefetchingName, |
| 1880 flag_descriptions::kOfflinePagesPrefetchingDescription, kOsAndroid, | 1886 flag_descriptions::kOfflinePagesPrefetchingDescription, kOsAndroid, |
| 1881 FEATURE_VALUE_TYPE(offline_pages::kPrefetchingOfflinePagesFeature)}, | 1887 FEATURE_VALUE_TYPE(offline_pages::kPrefetchingOfflinePagesFeature)}, |
| 1882 {"background-loader-for-downloads", | 1888 {"background-loader-for-downloads", |
| 1883 flag_descriptions::kBackgroundLoaderForDownloadsName, | 1889 flag_descriptions::kBackgroundLoaderForDownloadsName, |
| 1884 flag_descriptions::kBackgroundLoaderForDownloadsDescription, kOsAndroid, | 1890 flag_descriptions::kBackgroundLoaderForDownloadsDescription, kOsAndroid, |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2601 #if defined(USE_ASH) | 2607 #if defined(USE_ASH) |
| 2602 {"ash-enable-smooth-screen-rotation", | 2608 {"ash-enable-smooth-screen-rotation", |
| 2603 flag_descriptions::kAshEnableSmoothScreenRotationName, | 2609 flag_descriptions::kAshEnableSmoothScreenRotationName, |
| 2604 flag_descriptions::kAshEnableSmoothScreenRotationDescription, kOsCrOS, | 2610 flag_descriptions::kAshEnableSmoothScreenRotationDescription, kOsCrOS, |
| 2605 SINGLE_VALUE_TYPE(ash::switches::kAshEnableSmoothScreenRotation)}, | 2611 SINGLE_VALUE_TYPE(ash::switches::kAshEnableSmoothScreenRotation)}, |
| 2606 #endif // defined(USE_ASH) | 2612 #endif // defined(USE_ASH) |
| 2607 | 2613 |
| 2608 #if defined(OS_CHROMEOS) | 2614 #if defined(OS_CHROMEOS) |
| 2609 {"enable-zip-archiver-on-file-manager", | 2615 {"enable-zip-archiver-on-file-manager", |
| 2610 flag_descriptions::kEnableZipArchiverOnFileManagerName, | 2616 flag_descriptions::kEnableZipArchiverOnFileManagerName, |
| 2611 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, | 2617 flag_descriptions::kEnableZipArchiverOnFileManagerDescription, kOsCrOS, |
| 2612 kOsCrOS, | 2618 SINGLE_VALUE_TYPE(chromeos::switches::kEnableZipArchiverOnFileManager)}, |
| 2613 SINGLE_VALUE_TYPE( | |
| 2614 chromeos::switches::kEnableZipArchiverOnFileManager)}, | |
| 2615 #endif // OS_CHROMEOS | 2619 #endif // OS_CHROMEOS |
| 2616 | 2620 |
| 2617 #if defined(OS_ANDROID) | 2621 #if defined(OS_ANDROID) |
| 2618 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, | 2622 {"enable-copyless-paste", flag_descriptions::kEnableCopylessPasteName, |
| 2619 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, | 2623 flag_descriptions::kEnableCopylessPasteDescription, kOsAndroid, |
| 2620 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, | 2624 FEATURE_VALUE_TYPE(features::kCopylessPaste)}, |
| 2621 #endif | 2625 #endif |
| 2622 | 2626 |
| 2623 // NOTE: Adding new command-line switches requires adding corresponding | 2627 // NOTE: Adding new command-line switches requires adding corresponding |
| 2624 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2628 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2829 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2833 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2830 | 2834 |
| 2831 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2835 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2832 *count = arraysize(kFeatureEntries); | 2836 *count = arraysize(kFeatureEntries); |
| 2833 return kFeatureEntries; | 2837 return kFeatureEntries; |
| 2834 } | 2838 } |
| 2835 | 2839 |
| 2836 } // namespace testing | 2840 } // namespace testing |
| 2837 | 2841 |
| 2838 } // namespace about_flags | 2842 } // namespace about_flags |
| OLD | NEW |