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

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

Issue 1692693003: add a flag to enable/disable download interception on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused variable Created 4 years, 10 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/app/generated_resources.grd ('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 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 #if defined(OS_CHROMEOS) 771 #if defined(OS_CHROMEOS)
772 {"network-portal-notification", IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_NAME, 772 {"network-portal-notification", IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_NAME,
773 IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_DESCRIPTION, kOsCrOS, 773 IDS_FLAGS_NETWORK_PORTAL_NOTIFICATION_DESCRIPTION, kOsCrOS,
774 ENABLE_DISABLE_VALUE_TYPE( 774 ENABLE_DISABLE_VALUE_TYPE(
775 chromeos::switches::kEnableNetworkPortalNotification, 775 chromeos::switches::kEnableNetworkPortalNotification,
776 chromeos::switches::kDisableNetworkPortalNotification)}, 776 chromeos::switches::kDisableNetworkPortalNotification)},
777 #endif 777 #endif
778 {"enable-download-resumption", IDS_FLAGS_DOWNLOAD_RESUMPTION_NAME, 778 {"enable-download-resumption", IDS_FLAGS_DOWNLOAD_RESUMPTION_NAME,
779 IDS_FLAGS_DOWNLOAD_RESUMPTION_DESCRIPTION, kOsAll, 779 IDS_FLAGS_DOWNLOAD_RESUMPTION_DESCRIPTION, kOsAll,
780 FEATURE_VALUE_TYPE(features::kDownloadResumption)}, 780 FEATURE_VALUE_TYPE(features::kDownloadResumption)},
781 #if defined(OS_ANDROID)
782 {"enable-system-download-manager",
783 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_NAME,
784 IDS_FLAGS_ENABLE_SYSTEM_DOWNLOAD_MANAGER_DESCRIPTION,
785 kOsAndroid,
786 FEATURE_VALUE_TYPE(chrome::android::kSystemDownloadManager)},
787 #endif
781 #if defined(OS_CHROMEOS) 788 #if defined(OS_CHROMEOS)
782 {"download-notification", IDS_FLAGS_DOWNLOAD_NOTIFICATION_NAME, 789 {"download-notification", IDS_FLAGS_DOWNLOAD_NOTIFICATION_NAME,
783 IDS_FLAGS_DOWNLOAD_NOTIFICATION_DESCRIPTION, kOsCrOS, 790 IDS_FLAGS_DOWNLOAD_NOTIFICATION_DESCRIPTION, kOsCrOS,
784 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableDownloadNotification)}, 791 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableDownloadNotification)},
785 #endif 792 #endif
786 #if defined(ENABLE_PLUGINS) 793 #if defined(ENABLE_PLUGINS)
787 {"allow-nacl-socket-api", IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, 794 {"allow-nacl-socket-api", IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME,
788 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, kOsDesktop, 795 IDS_FLAGS_ALLOW_NACL_SOCKET_API_DESCRIPTION, kOsDesktop,
789 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")}, 796 SINGLE_VALUE_TYPE_AND_VALUE(switches::kAllowNaClSocketAPI, "*")},
790 #endif 797 #endif
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2038 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2032 2039
2033 const FeatureEntry* GetFeatureEntries(size_t* count) { 2040 const FeatureEntry* GetFeatureEntries(size_t* count) {
2034 *count = arraysize(kFeatureEntries); 2041 *count = arraysize(kFeatureEntries);
2035 return kFeatureEntries; 2042 return kFeatureEntries;
2036 } 2043 }
2037 2044
2038 } // namespace testing 2045 } // namespace testing
2039 2046
2040 } // namespace about_flags 2047 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/chrome_feature_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698