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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 chromeos::switches::kDisableNetworkPortalNotification)}, | 769 chromeos::switches::kDisableNetworkPortalNotification)}, |
770 #endif | 770 #endif |
771 {"enable-download-resumption", IDS_FLAGS_DOWNLOAD_RESUMPTION_NAME, | 771 {"enable-download-resumption", IDS_FLAGS_DOWNLOAD_RESUMPTION_NAME, |
772 IDS_FLAGS_DOWNLOAD_RESUMPTION_DESCRIPTION, kOsAll, | 772 IDS_FLAGS_DOWNLOAD_RESUMPTION_DESCRIPTION, kOsAll, |
773 FEATURE_VALUE_TYPE(features::kDownloadResumption)}, | 773 FEATURE_VALUE_TYPE(features::kDownloadResumption)}, |
774 #if defined(OS_ANDROID) | 774 #if defined(OS_ANDROID) |
775 {"enable-system-download-manager", | 775 {"enable-system-download-manager", |
776 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_NAME, | 776 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_NAME, |
777 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_DESCRIPTION, kOsAndroid, | 777 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_DESCRIPTION, kOsAndroid, |
778 FEATURE_VALUE_TYPE(chrome::android::kSystemDownloadManager)}, | 778 FEATURE_VALUE_TYPE(chrome::android::kSystemDownloadManager)}, |
| 779 {"enable-media-document-download-button", |
| 780 IDS_FLAGS_MEDIA_DOCUMENT_DOWNLOAD_BUTTON_NAME, |
| 781 IDS_FLAGS_MEDIA_DOCUMENT_DOWNLOAD_BUTTON_DESCRIPTION, kOsAndroid, |
| 782 FEATURE_VALUE_TYPE(features::kMediaDocumentDownloadButton)}, |
779 #endif | 783 #endif |
780 #if defined(OS_CHROMEOS) | 784 #if defined(OS_CHROMEOS) |
781 {"download-notification", IDS_FLAGS_DOWNLOAD_NOTIFICATION_NAME, | 785 {"download-notification", IDS_FLAGS_DOWNLOAD_NOTIFICATION_NAME, |
782 IDS_FLAGS_DOWNLOAD_NOTIFICATION_DESCRIPTION, kOsCrOS, | 786 IDS_FLAGS_DOWNLOAD_NOTIFICATION_DESCRIPTION, kOsCrOS, |
783 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableDownloadNotification)}, | 787 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableDownloadNotification)}, |
784 #endif | 788 #endif |
785 #if defined(ENABLE_PLUGINS) | 789 #if defined(ENABLE_PLUGINS) |
786 {"allow-nacl-socket-api", IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, | 790 {"allow-nacl-socket-api", IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, |
787 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, kOsDesktop, | 791 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, kOsDesktop, |
788 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")}, | 792 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")}, |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2030 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2034 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2031 | 2035 |
2032 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2036 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2033 *count = arraysize(kFeatureEntries); | 2037 *count = arraysize(kFeatureEntries); |
2034 return kFeatureEntries; | 2038 return kFeatureEntries; |
2035 } | 2039 } |
2036 | 2040 |
2037 } // namespace testing | 2041 } // namespace testing |
2038 | 2042 |
2039 } // namespace about_flags | 2043 } // namespace about_flags |
OLD | NEW |