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

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: allow finch trial to turn on off the flag 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
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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 kOsCrOS, 846 kOsCrOS,
847 ENABLE_DISABLE_VALUE_TYPE( 847 ENABLE_DISABLE_VALUE_TYPE(
848 chromeos::switches::kEnableNetworkPortalNotification, 848 chromeos::switches::kEnableNetworkPortalNotification,
849 chromeos::switches::kDisableNetworkPortalNotification)}, 849 chromeos::switches::kDisableNetworkPortalNotification)},
850 #endif 850 #endif
851 {"enable-download-resumption", 851 {"enable-download-resumption",
852 IDS_FLAGS_DOWNLOAD_RESUMPTION_NAME, 852 IDS_FLAGS_DOWNLOAD_RESUMPTION_NAME,
853 IDS_FLAGS_DOWNLOAD_RESUMPTION_DESCRIPTION, 853 IDS_FLAGS_DOWNLOAD_RESUMPTION_DESCRIPTION,
854 kOsAll, 854 kOsAll,
855 FEATURE_VALUE_TYPE(features::kDownloadResumption)}, 855 FEATURE_VALUE_TYPE(features::kDownloadResumption)},
856 #if defined(OS_ANDROID)
857 {"enable-download-interception", IDS_FLAGS_DOWNLOAD_INTERCEPTION_NAME,
858 IDS_FLAGS_DOWNLOAD_INTERCEPTION_DESCRIPTION, kOsAndroid,
859 SINGLE_VALUE_TYPE(switches::kEnableDownloadInterception)},
860 #endif
856 #if defined(OS_CHROMEOS) 861 #if defined(OS_CHROMEOS)
857 {"download-notification", 862 {"download-notification",
858 IDS_FLAGS_DOWNLOAD_NOTIFICATION_NAME, 863 IDS_FLAGS_DOWNLOAD_NOTIFICATION_NAME,
859 IDS_FLAGS_DOWNLOAD_NOTIFICATION_DESCRIPTION, 864 IDS_FLAGS_DOWNLOAD_NOTIFICATION_DESCRIPTION,
860 kOsCrOS, 865 kOsCrOS,
861 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableDownloadNotification)}, 866 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableDownloadNotification)},
862 #endif 867 #endif
863 #if defined(ENABLE_PLUGINS) 868 #if defined(ENABLE_PLUGINS)
864 {"allow-nacl-socket-api", 869 {"allow-nacl-socket-api",
865 IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME, 870 IDS_FLAGS_ALLOW_NACL_SOCKET_API_NAME,
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2387 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2383 2388
2384 const FeatureEntry* GetFeatureEntries(size_t* count) { 2389 const FeatureEntry* GetFeatureEntries(size_t* count) {
2385 *count = arraysize(kFeatureEntries); 2390 *count = arraysize(kFeatureEntries);
2386 return kFeatureEntries; 2391 return kFeatureEntries;
2387 } 2392 }
2388 2393
2389 } // namespace testing 2394 } // namespace testing
2390 2395
2391 } // namespace about_flags 2396 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698