Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2341643008: Defaulting all downloads to go through Chrome network stack (Closed)
Patch Set: rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_feature_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_DESCRIPTION, kOsCrOS, 890 IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_DESCRIPTION, kOsCrOS,
891 ENABLE_DISABLE_VALUE_TYPE( 891 ENABLE_DISABLE_VALUE_TYPE(
892 chromeos::switches::kEnableNetworkPortalNotification, 892 chromeos::switches::kEnableNetworkPortalNotification,
893 chromeos::switches::kDisableNetworkPortalNotification)}, 893 chromeos::switches::kDisableNetworkPortalNotification)},
894 #endif 894 #endif
895 #if defined(OS_ANDROID) 895 #if defined(OS_ANDROID)
896 {"enable-read-it-later-in-menu", 896 {"enable-read-it-later-in-menu",
897 IDS_FLAGS_ENABLE_READ_IT_LATER_IN_MENU_NAME, 897 IDS_FLAGS_ENABLE_READ_IT_LATER_IN_MENU_NAME,
898 IDS_FLAGS_ENABLE_READ_IT_LATER_IN_MENU_DESCRIPTION, kOsAndroid, 898 IDS_FLAGS_ENABLE_READ_IT_LATER_IN_MENU_DESCRIPTION, kOsAndroid,
899 FEATURE_VALUE_TYPE(chrome::android::kReadItLaterInMenu)}, 899 FEATURE_VALUE_TYPE(chrome::android::kReadItLaterInMenu)},
900 {"enable-system-download-manager",
901 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_NAME,
902 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_DESCRIPTION, kOsAndroid,
903 FEATURE_VALUE_TYPE(chrome::android::kSystemDownloadManager)},
904 {"enable-media-document-download-button", 900 {"enable-media-document-download-button",
905 IDS_FLAGS_MEDIA_DOCUMENT_DOWNLOAD_BUTTON_NAME, 901 IDS_FLAGS_MEDIA_DOCUMENT_DOWNLOAD_BUTTON_NAME,
906 IDS_FLAGS_MEDIA_DOCUMENT_DOWNLOAD_BUTTON_DESCRIPTION, kOsAndroid, 902 IDS_FLAGS_MEDIA_DOCUMENT_DOWNLOAD_BUTTON_DESCRIPTION, kOsAndroid,
907 FEATURE_VALUE_TYPE(features::kMediaDocumentDownloadButton)}, 903 FEATURE_VALUE_TYPE(features::kMediaDocumentDownloadButton)},
908 #endif 904 #endif
909 #if defined(ENABLE_PLUGINS) 905 #if defined(ENABLE_PLUGINS)
910 {"allow-nacl-socket-api", IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, 906 {"allow-nacl-socket-api", IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME,
911 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, kOsDesktop, 907 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, kOsDesktop,
912 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")}, 908 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")},
913 #endif 909 #endif
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2307 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2303 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2308 2304
2309 const FeatureEntry* GetFeatureEntries(size_t* count) { 2305 const FeatureEntry* GetFeatureEntries(size_t* count) {
2310 *count = arraysize(kFeatureEntries); 2306 *count = arraysize(kFeatureEntries);
2311 return kFeatureEntries; 2307 return kFeatureEntries;
2312 } 2308 }
2313 2309
2314 } // namespace testing 2310 } // namespace testing
2315 2311
2316 } // namespace about_flags 2312 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/chrome_feature_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698